var colors=["red","white"]; colors.push("blue");//append 'blue' to colors
var colors= ["red","blue"]; colors.push("yellow");
arr.push(item);
// initialize array var arr = [ "Hi", "Hello", "Bonjour" ]; // append new value to the array arr.push("Hola"); console.log(arr);
let foo = ['oop','plop','copo']; foo.push("plop");