javascript add array elements code example
Example 1: js array add element
array.push(element)
Example 2: javascript append element to array
var colors= ["red","blue"];
colors.push("yellow");
Example 3: js add item to array
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");