js|jscript| reserved word
Jscript has some reserved words that cannot be used in identifiers. Reserved words have special meanings for Jscript languages, and they are part of the language syntax. Using reserved words will produce a compilation error when loading the script.
Jscript also has some reserved words for future use. These words are not part of the current Jscript language, but they are reserved for future use.
Reserved words
Break |
Delete |
function |
Return |
typeof |
Case |
Todo |
If |
Switch |
Var |
Catch |
Else |
In |
This |
void |
Continue |
False |
instanceof |
Throw |
While |
Debugger |
Finally |
New |
True |
With |
Default |
For |
Null |
Try |
|
Words reserved for the future
Abstract |
Double |
Goto |
Native |
Static |
Boolean |
Enum |
Implements |
Package |
Super |
Byte |
Export |
Import |
Private |
Synchronized |
Char |
Extends |
Int |
Protected |
Throws |
Class |
Final |
Interface |
Public |
Transient |
Const |
Float |
Long |
Short |
Volatile |
Avoid using words that have already been used in an internal Jscript object or function, such as String or parseint, when you select an identifier.