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