append a list js 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");
var colors=["red","white"];
colors.push("blue");//append 'blue' to colors
let foo = ['oop','plop','copo'];
foo.push("plop");