Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Not to discourage (or disparage) all of the avid web developers out there but please, please, learn JavaScript before you learn a library! (ie. jQuery, MooTools, Dojo, or Prototype) It'll make you a better developer and your code'll be faster/better! Commented Jul 25, 2010 at 17:33
  • @indieinvader: that comment does not make sense to my post? :p Commented Jul 25, 2010 at 17:45
  • I guess it was a little out of context, what I was trying to say is that this should be obvious. But because most new JS developers don't learn the language, they learn jQuery, et al they end up inadvertently writing bad code or worse, confused when they find out that jQuery !== JavaScript! tl;dr: you're right, for is better than .each() Commented Jul 26, 2010 at 2:08