JavaScript Append Element a Array
var colors= ["red","blue"];
colors.push("yellow");
Friendly Hawk
var colors= ["red","blue"];
colors.push("yellow");
var colors=["red","blue"];
var index=1;
//insert "white" at index 1
colors.splice(index, 0, "white"); //colors = ["red", "white", "blue"]
array.push(element)
let items = [1, 2, 3]
items.push(4); // items = [1, 2, 3, 4]