js array push add two elements code example
Example 1: javascript append list
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");
Example 2: javascript add multiple items to array
var a = [];
a.push(1, 2, 3);
console.log(a);