hwo to push element in list in js code example
Example 1: javascript append element to array
var colors= ["red","blue"];
colors.push("yellow");
Example 2: js push array
array.push(element_to_push);
var colors= ["red","blue"];
colors.push("yellow");
array.push(element_to_push);