push a list into an array code example
Example 1: javascript append element to array
var colors= ["red","blue"];
colors.push("yellow");
Example 2: how to add list in javascript
list=["elements"]#add elements by seperating with comma
var colors= ["red","blue"];
colors.push("yellow");
list=["elements"]#add elements by seperating with comma