What common programming problems are best solved by using prototypes and closures?

Posted by vemv on Programmers See other posts from Programmers or by vemv
Published on 2011-11-21T13:00:26Z Indexed on 2011/11/21 18:08 UTC
Read the original article Hit count: 221

As much as I understand both concepts, I can't see how can I take advantage of JavaScript's closures and prototypes aside from using them for creating instantiable and/or encapsulated class-like blocks (which seems more of a workaround than an asset to me)

Other JS features such as functions-as-values or logical evaluation of non-booleans are much easier to fall in love with...

What common programming problems are best solved by using propotypal inheritance and closures?

© Programmers or respective owner

Related posts about JavaScript

Related posts about language-features