926 Views
A closure happens when one function is inside another function, and the inner function wants to access a variable which belongs to the outer function. This article was originally published on my blog, as part of the Quickly Explained series. In JavaScript, every function creates its own scope.
0 comments