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

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


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.