View Single Post
  #5 (permalink)  
Old 05-19-2008, 01:25 AM
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

chop() - Used to truncate the last character of a all strings that are part of an array. This method is not defined so it must be written and included in your code.

var exclamations = new Array("Look out!", "Duck!" )
exclamations.chop()

Causes the values of exclamations to become:

Code:
Look out
Duck
__________________
With,
J. Jeyaseelan

Everything Possible
Reply With Quote