1some_array = ["John", "Sally"];
2some_array.push("Mike");
3
4console.log(some_array); //output will be =>
5["John", "Sally", "Mike"]
1array = ["hello"]
2array.push("world");
3
4console.log(array);
5//output =>
6["hello", "world"]
1const langages = ['Javascript', 'Ruby', 'Python'];
2langages.push('Go'); // => ['Javascript', 'Ruby', 'Python', 'Go']
3
4const dart = 'Dart';
5langages = [...langages, dart]; // => ['Javascript', 'Ruby', 'Python', 'Go', 'Dart']