The pop() method removes the last element from an array.
The return value of the pop() method is the removed item.