Arrays are mutable lists in JavaScript.
let myArr = ["item 1", "item 2", "item 3"];
To access specific indexes within an array.
myArr[2];
Would access the third item within myArr
.
myArr.push("item 4");
Would add item 4 to the end of myArr
.
myArr.unshift("item 0");
Would add item 0 to the beginning of myArr
.