Sunday, February 22, 2015

JavaScript Anonymous Functions

Functions that are declared as they run and with no name.  For example,

(function () { ... });

One purpose of using anonymous function is to create a scope for local variables.

No comments: