how to add elements in array in javascript

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"); var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");some_array = ["John", "Sally"];
some_array.push("Mike");

console.log(some_array); //output will be =>
["John", "Sally", "Mike"]var fruits = [ "Orange", "Apple", "Mango"];

fruits.push("Banana"); 
Source

Also in JavaScript: