1const langages = ['Javascript', 'Ruby', 'Python'];
2langages.push('Go'); // => ['Javascript', 'Ruby', 'Python', 'Go']
3
4const dart = 'Dart';
5langages = [...langages, dart]; // => ['Javascript', 'Ruby', 'Python', 'Go', 'Dart']
1var arrayExample = [53,'Hello World!'];
2console.log(arrayExample) //Output =>
3[53,'Hello World!']
4
5//You can also do this
6arrayExample.push(true);
7
8console.log(arrayExample); //Output =>
9[53,'Hello World!',true];