Sunday, December 21, 2014

Closure in JavaScript

Closure is when a function remembers its lexical scope even when the function is executed outside its lexical scope.
We can make private variable with closure.

For Example

Link 1 - Closure
Link 2 - Closure
Link 3 - Closure
Link 4 - Closure

No comments:

Post a Comment