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