Skip to content
Related Articles

Related Articles

JavaScript | Reserved Words
  • Last Updated : 27 Mar, 2019


In JavaScript you cannot use these reserved words as variables names, labels names or function names.

Reserved Words:

abstractargumentsbooleanbreakbyte
casecatchcharconstcontinue
debuggerdefaultdeletedodouble
elseevalfalsefinalfinally
floatforfunctiongotoif
implementsininstanceofintinterface
longnativenewnullpackage
privateprotectedpublicreturnshort
staticswitchsynchronizedthisthrow
throwstransienttruetrytypeof
varvoidvolatilewhilewith
yield

Reserved Words added in ECMAScript 5 and 6.

awaitsclassenumexport
extendsimportletsuper

Removed Reserved Words

Following reserved words has been removed from ECMAScript 5 and 6.

abstractbooleanbytechar
doublefinalfloatgoto
intlongnativeshort
synchronizedthrowstransientvolatile

full-stack-img

My Personal Notes arrow_drop_up
Recommended Articles
Page :