Array.pop()
This function removes the last entry in an array and returns it. The length of the array is automatically reduced by one when pop is called.
This example program pops an entry off the menu array every time you tap the screen.