how to append element to arrya 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");
var colors= ["red","blue"];
colors.push("yellow");
let foo = ['oop','plop','copo'];
foo.push("plop");