0 as the first element index. Elements can be accessed by their index using the array name, and the index surrounded by square brackets. Array items can be changed by accessing the item and assigning it to a new value.
To obtain the length value, append the
length property after the array name using a period.
.push() mutates the original array returns the new length of the array.
.pop() method removes the last element from an array and returns that element.
Even if they are declared using
const, the contents can be manipulated by reassigning internal values or using methods like