JavaScript is a very subtle and sophisticated language and it deserves to be treated in its own right and not as a poor copy of other object-oriented language. In this first chapter of Just JavaScript ...
As the lifetime of a Function object only depends on what variables reference it, just like any other object, it can exist well after any outer function that created it. By the rules of nested scope ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results