how to append a list in javascript code example
Example 1: javascript append to array
var colors=["red","white"];
colors.push("blue");//append 'blue' to colors
Example 2: javscript append item from array
let foo = ['oop','plop','copo'];
foo.push("plop");
Example 3: javascript add item to 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