.push js

JavaScript
let liste = ["azerty"]
liste.push('hello')
console.log(liste) //["azerty",'hello']var array = [];
var element = "anything you want in the array";
array.push(element); // array = [ "anything you want in the array" ]array = ["hello"]
array.push("world");

console.log(array);
//output =>
["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) ;

var SomeRandomArray = [];
SomeRandomArray.push("Hello, world!");
Source

Also in JavaScript: