JavaScript | Reserved Words
In JavaScript you cannot use these reserved words as variables names, labels names or function names.
Reserved Words:
abstract | arguments | boolean | break | byte |
case | catch | char | const | continue |
debugger | default | delete | do | double |
else | eval | false | final | finally |
float | for | function | goto | if |
implements | in | instanceof | int | interface |
long | native | new | null | package |
private | protected | public | return | short |
static | switch | synchronized | this | throw |
throws | transient | true | try | typeof |
var | void | volatile | while | with |
yield |
Reserved Words added in ECMAScript 5 and 6.
awaits | class | enum | export |
extends | import | let | super |
Removed Reserved Words
Following reserved words has been removed from ECMAScript 5 and 6.
abstract | boolean | byte | char |
double | final | float | goto |
int | long | native | short |
synchronized | throws | transient | volatile |