1. Generic reserved Keywords
Break |
Delete |
function |
Return |
typeof |
Case |
Do |
If |
Switch |
Var |
Catch |
Else |
Inch |
This |
void |
Continue |
False |
instanceof |
Throw |
While |
Debugger |
Finally |
New |
True |
With |
Default |
For |
Null |
Try |
|
2.ECMAScript 5 Increase Retention
Class |
Const |
Enum |
Export |
Extends |
Import |
Super |
|
|
|
3. Normal under legal, but strict mode is reserved
Implements |
Let |
Private |
Public |
Yield |
Interface |
Package |
Protected |
Static |
|
4. Strict mode is strictly restricted, not exactly reserved words, but not as variable names, function names or parameter names
5.ECMASCRIPT3 keywords
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 |
6.Javascript pre-defined a number of global variables and functions, you should avoid their names as variable names and function names:
Arguments |
encodeURI |
Infinity |
Number |
Regexp |
Array |
encodeURIComponent |
Isfinite |
Object |
String |
Boolean |
Error |
IsNaN |
Parsefloat |
SyntaxError |
Date |
Eval |
Json |
parseint |
TypeError |
decodeURI |
Evalerror |
Math |
Rangeerror |
Undefined |
decodeURIComponent |
Function |
NaN |
Referenceerror |
Urierror |
JavaScript reserved Keywords