data push in javascript code example Example: how to push data in js var fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.push("Kiwi");