javascript append list code example
Example 1: javascript append element to array
var colors= ["red","blue"];
colors.push("yellow");
Example 2: javscript append item from array
let foo = ['oop','plop','copo'];
foo.push("plop");
Example 3: javascript append list
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");
Example 4: how to add list in javascript
list=["elements"]#add elements by seperating with comma