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