๐ฐclosure
Last updated
Last updated
JS โฉ value โฉ function โฉ closure
A closure
is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment).
gives you access to an outer function's scope from an inner function.
is created every time a function is created, at function creation time.
๐ lexical environment