push a variable to a new array javascript code example Example: javascript array push var fruits = [ "Orange", "Apple", "Mango"]; fruits.push("Banana");