js add element to array

JavaScript
var colors= ["red","blue"];
	colors.push("yellow"); //["red","blue","yellow"]var colors=["red","white"];
colors.push("blue");//append 'blue' to colorsvar colors= ["red","blue"];
	colors.push("yellow"); array.push(element)var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");var fruits = [ "Orange", "Apple", "Mango"];

fruits.push("Banana"); 
Source

Also in JavaScript: