Stop Nesting Functions! (But Not All of Them)

October 28 2013, 12:59am

Great intro to why you shouldn't nest functions in javascript and how to use js object's prototype.

JavaScript is over fifteen years old; nevertheless, the language is still misunderstood by what is perhaps the majority of developers and designers using the language. One of the most powerful, yet misunderstood, aspects of JavaScript are functions. While terribly vital to JavaScript, their misuse can introduce inefficiency and hinder an application's performance.