Merge pull request #598 from Gogy/patch-1

Link to the list of reserved words
This commit is contained in:
Ilya Kantor 2018-11-09 10:26:19 +03:00 committed by GitHub
commit 76cd7b9097
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,7 +195,7 @@ Technically, there is no error here, such names are allowed, but there is an int
```` ````
````warn header="Reserved names" ````warn header="Reserved names"
There is a list of reserved words, which cannot be used as variable names, because they are used by the language itself. There is a [list of reserved words](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords), which cannot be used as variable names, because they are used by the language itself.
For example, words `let`, `class`, `return`, `function` are reserved. For example, words `let`, `class`, `return`, `function` are reserved.