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

this is a keyword, not a variable #1336

Open
cluxter opened this issue Jul 24, 2020 · 0 comments
Open

this is a keyword, not a variable #1336

cluxter opened this issue Jul 24, 2020 · 0 comments

Comments

@cluxter
Copy link

cluxter commented Jul 24, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant