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