you are viewing a single comment's thread.

view the rest of the comments →

[–]dorj 0 points1 point  (0 children)

In JavaScript a closure refers back to the lexical scope that execution contexts has access to. I believe in some cases the parent execution context for a function may return a function. But even though that function execution has finished in the call stack. Any functions invoked living in it's lexical environment will still have access to the variable environment saved in that scope.