Arrays are container-like values that can hold other values. The values inside an array are called elements.
To get the last element, you can use brackets and `1` less than the array’s length property.
This also works for setting an element’s value.
Arrays have their own built-in variables and functions, also known as properties and methods. Here are some of the most common ones.
An array’s length property stores the number of elements inside the array.
An array’s concat method returns a new array that combines the values of two arrays.
An array’s pop method removes the last element in the array and returns that element’s value.
An array’s push method adds an element to the array and returns the array’s length.
An array’s reverse method returns a copy of the array in opposite order.