JavaScript Closure Quickly Explained

added by JavaScript Kicks
3/5/2019 8:36:18 AM

384 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