|
| JAVASCRIPT RESERVED WORDS
The javascript language, like any other, has certain reserved words that are used as part of the in-built javascript syntax. Therefore, these words cannot be used in functions, variables or labels.
If these words are used by mistake, errors occur and your code ceases to work.
These reserved words are:
| break | case | continue | default |
| delete | do | else | export |
| false | for | function | if |
| import | in | new | null |
| return | switch | this | true |
| typeof | var | void | while |
| with | | | |
Javascript also reserves the following words for inclusion in the javascript syntax at some later point in future. Therefore you may also not use these words at all in your javascript programming projects:
| abstract | boolean | byte | catch |
| char | class | const | debugger |
| double | enum | extends | final |
| finally | float | goto | implements |
| instanceof | int | interface | long |
| native | package | private | protected |
| public | short | static | super |
| synchronised | throw | throws | transient |
| try | | | |
|
|