The First In, First Out (FIFO) Programming Logic
newLocationForFirstItem = myArray.shift();
To add an item to the end of the array, your code would look like this:
myArray.push('New string gets added to the end');
You can think of this programming logic like you think of a line for a roller coaster. The first in line gets to go on the ride first, hence the name First In, First Out.