`this` is not tied to the function
There's a section called:
The this of Parent Scopes
And it starts by saying:
Since each function has its own
thisbinding, whose value depends on the way it is called, you cannot refer to thethisof the wrapping scope in a regular function defined with the function keyword.
This is incorrectly worded. There is no concept at all of "the this of a scope", as it's not associated to a scope. So the title is not correct. Also the explanation will be confusing to novices because it, again, relates this to some wrapping scope.
If you have a suggested fix, I'm happy to copy-paste and put it there :-)
The this of Global Scope
.. is apt
If a variable or function is global, it can be got at from anywhere. In a browser, the global scope is the
windowobject
The only other scope we can have is Local Scope. JavaScript scopes at a function level.