Javascript reserved words (JavaScript reserved words)
Reserved words refer to the words that have specific meanings in the Javascript language and become part of the Javascript syntax. Javascript reserved words cannot be used as variable names and function names. Using reserved JavaScript words as the variable name or function name may cause compilation errors during Javascript loading.
List of reserved JavaScript words:
Break |
Delete |
Function |
Return |
Typeof |
Case |
Do |
If |
Switch |
VaR |
Catch |
Else |
In |
This |
Void |
Continue |
False |
Instanceof |
Throw |
While |
Debugger |
Finally |
New |
True |
With |
Default |
For |
Null |
Try |
|
Javascript future reserved words (JavaScript future reserved words)
Javascript also has some reserved words in the future. Although these words are not used in Javascript, they may be used in the future.
Future reserved JavaScript word list:
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 |