array push javascript example

JavaScript
var fruits = ["Banana", "Orange", "Apple", "Mango"];

fruits.push("Kiwi"); 
Source

Also in JavaScript: