javaScript reserved keywords

javascript reserved keyword that you cannot use as identifiers.

JavaScript has a number of reserved words that you cannot use as identifiers. Reserved words have a specific meaning to the JavaScript language, as they are part of the language syntax. Using a reserved word as identifier causes a compilation error when loading your script.

When choosing identifiers it is also important to avoid any words that are already the names of intrinsic JavaScript objects or functions, such as String or parseInt.

javascript reserved words
breakdefaultfunctionreturn
casedeleteifswitch
catchdointhis
constelseinstanceofthrow
continuefinallylettry
debuggerfornewtypeof
varvoidwhilewith

future reserved word

  • class
  • enum
  • export
  • extends
  • import
  • super

future reserved word in strict mode

the following are future reserved words only in strict mode.information about the strict mode.

  • implements
  • interface
  • package
  • private
  • protected
  • public
  • static
  • yield