There are many ways in which JavaScript's approach is different from standard, run of the mill, class-based languages, but some of them go unnoticed. Take the whole subject of parameter passing - ...
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 ...