1some_array = ["John", "Sally"];
2some_array.push("Mike");
3
4console.log(some_array); //output will be =>
5["John", "Sally", "Mike"]
1var colors=["red","blue"];
2var index=1;
3
4//insert "white" at index 1
5colors.splice(index, 0, "white"); //colors = ["red", "white", "blue"]
6
1//adding items to array
2objects = [];
3objects.push("you can add a string,number,boolean,etc");
4//if you more stuff in a array
5//before i made a error doing value = : value
6objects.push({variable1 : value, variable2 : value);
7//we do the {} so we tell it it will have more stuff and the variable : value
8