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