View Single Post
  #9 (permalink)  
Old 05-21-2008, 10:05 PM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Manipulating in array

pop() - Pops the last string off the array and returns 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")
var lastword = words.pop()
The value of the string lastword is:

Out
__________________
With,
J. Jeyaseelan

Everything Possible
Reply With Quote