var colors=["red","white"]; colors.push("blue");//append 'blue' to colors
array.push(element)
var colors= ["red","blue"]; colors.push("yellow");
let items = [1, 2, 3] items.push(4); // items = [1, 2, 3, 4]
var fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.push("Kiwi");
// initialize array var arr = [ "Hi", "Hello", "Bonjour" ]; // append new value to the array arr.push("Hola"); console.log(arr);