.push js

JavaScript
array.push(element)array = ["hello"]
array.push("world");

console.log(array);
//output =>
["hello", "world"]var array = [];
var element = "anything you want in the array";
array.push(element); // array = [ "anything you want in the array" ]array.push(element_to_push);var SomeRandomArray = [];
SomeRandomArray.push("Hello, world!");let monTableau2D = [
     ['Mark' , 'jeff' , 'Bill'] , 
     ['Zuckerberg' , 'Bezos' , 'Gates']
 ] ;
 monTableau2D[1].push('test') ; 
 console.log(monTableau2D) ;
              //////////////////
let monTableau = ['un', 'deux','trois', 'quatre'] ;
monTableau.push('cinq') ;
console.log(monTableau) ;

			///////////////////

let monTableauAssociatif = {
     'prenom' : 'Mark' ,
     'nom'    : 'Zuckerberg' , 
     'poste'  : 'Pdg de Facebook',

 } ;
 monTableauAssociatif['nationalite'] = 'Américaine' ;
 console.log(monTableauAssociatif) ;


Source

Also in JavaScript: