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.

Required fields*

8
  • 5
    which is exactly how the "jQuery" object returned by $() works Commented Jan 3, 2010 at 23:34
  • 1
    Well, I'm sure there's a plugin which allows you to do that with jQuery :P Commented Jan 3, 2010 at 23:37
  • 81
    How about [] instead of new Array() and {} instead of new Object()... Commented Jan 3, 2010 at 23:58
  • 7
    @J-P: sure, why not. I'm just trying to be as clear as possible in the example. Commented Jan 4, 2010 at 0:03
  • 3
    @Justin: Actually, it's slightly faster: mir.aculo.us/2009/12/24/extreme-javascript-performance-video (slide 21 onwards) Commented Jan 4, 2010 at 1:30