add element to array javascript
snippet in javascript

add element to array javascript

user609

var colors=["red","white"];
colors.push("blue");//append 'blue' to colors

append array js

user8083

var colors= ["red","blue"];
	colors.push("yellow"); //["red","blue","yellow"]

javascript append element to array

user5576

var colors= ["red","blue"];
	colors.push("yellow"); 

js array add element

user2857

array.push(element)

js add item to array

user5324

var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");

add element to array javascript

user9485


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

fruits.push("Kiwi");