Closure

JavaScript

Understanding JavaScript - Closure

Closure in JavaScript is the combination of a function with references to its surrounding lexical scope. Closure gives access to an outer function’s scope from an inner function. In JavaScript, read more...