Ever wondered how to script "Closures" in JS ?

Anonymous / Inner Classes in Java are quite famous, with event handlers. Closures in JS are similar, not quite the same.
Closures are expressions, usually functions, which can work with variables set within a certain context. Or, to try and make it easier, inner functions referring to local variables of its outer function create closures.

Read it here as explained quite nicely by Morris Johns.

Popular posts from this blog

Thinking about Forms and Usability...

Notes about differences between Java and JavaScript

IFE - A Charity to promote the message of PEACE.