You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the definition of a closure as "a function defined inside another function..." is not particularly correct. A closure is a function + lexical environment it's bound to. It doesn't necessary require an outer function.