Link to the list of reserved words

Added link to the list of reserved words on developer.mozilla.org
This commit is contained in:
Goran 2018-11-05 22:40:03 +01:00 committed by GitHub
parent da0063e450
commit dd0fc63d79
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"
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.