what is closure

References to surrounding state (lexical env). Gives you access to an outer function’s scope from an inner function.

Closures are created every time a function is created.