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

@cluxter

Description

@cluxter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions