Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

this is a keyword, not a variable #1336

Description

In the Functions page, in the this and arrow functions section, we can read:

In JavaScript, this is a variable that’s set when a function is called.

This is wrong. The Standard ECMA-262, clause 12.2.2 couldn't be more explicit:

12.2.2 The this Keyword

This is a keyword, not a variable.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions