Understanding JavaScript Closures
JavaScript Closures
A closure is the combination of a function and the lexical environment within which it was declared.
A closure is the combination of a function and the lexical environment within which it was declared.