push javescript code example
Example 1: push javascript
let fruit = ['apple', 'banana']
fruit.push('cherry')
console.log(fruit) // ['apple', 'banana', 'chery']
Example 2: java script push
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");