The Deep End

go to graworks.com! email!

Tuesday, July 26, 2005

Arrays in Javascript

Arrays in Javascript are awesome. Just look at all the things you can do with them:

you can pop,
you can push,
you can remove,
you can splice,
you can unshift (which adds new elements to the front and returns the length)
you can sort
you can reverse the entire array

you can define it like new Array("this", "this", "this", "this")
or like = ["jaa","whaa","gaaa"]

they're beautiful

2 Comments:

Post a Comment

<< Home