[Javascript] I have hit a brick wall
joel.goldstick at columbuswebmakers.com
joel.goldstick at columbuswebmakers.com
Thu Sep 7 15:06:40 CDT 2006
>
> i.push(i.shift());
>
While the looping methods outlined may be easier to understand, this
line of code is a gem! My guess is that it also runs faster. No need
to know how many items in the array either.
So, if this looks strange, do a little study on stacks and lists. These
are long time standard constructs for those who studied programming in
college courses, but are most likely missed by the many who are learning
to code by the seat of their pants!
--
Joel Goldstick
www.columbuswebmakers.com
More information about the Javascript
mailing list