Skip to content

this is not tied to the function #5

Description

@gezeta-id

There's a section called:

The this of Parent Scopes

And it starts by saying:

Since each function has its own this binding, whose value depends on the way it is called, you cannot refer to the this of 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions