shift() - Decreases array element size by one by shifting the first element off the array and returning it. This method is not defined so it must be written and included in your code.
Code:
words = new Array("limit","lines","finish","complete","In","Out")
word = words.shift() The array, words, will be:
Code:
In, complete, finish, lines, limit
The string word will be:
Out