News for hackers. Stuff that matters.
Re:How Good C# Habits can Encourage Bad JavaScript Habits by stoey on Thursday May 09, 2013 @05:56PM (#5683236)
That's not actually what the Crockford link says [1] it talks about using array and object literals in place of `new Object()` or `new Array()`. Which does indeed seem faster [2].

[1] http://yuiblog.com/blog/2006/11/13/javascript-we-hardly-new-... [2] http://jsperf.com/new-vs-object-literal

There are no comments on this comment yet.