Javascript Closure tutorial ( Closures Explained )

18 Nov 2015 12:52 949
6,643 261

What are closures in javaScript and how and where to use them.

So what is closure in javascript?
"whenever you declare a function inside another function, the inside function(s) is/are recreated again each time the outside function is called"

"Closures are functions that refer to independent (free) variables. In other words, the function defined in the closure 'remembers' the environment in which it was created."

Related of "Javascript Closure tutorial ( Closures Explained )" Videos