HOME C C++ PYTHON JAVA HTML CSS JAVASCRIPT BOOTSTRAP JQUERY REACT PHP SQL AJAX JSON DATA SCIENCE AI

JavaScript Reserved Words

In JavaScript, reserved words are words that have special meaning and are reserved for use by the language itself.

These words cannot be used as identifiers (such as variable names, function names, or labels) in JavaScript code.

Using reserved words as identifiers will result in syntax errors.

  • break
  • case
  • catch
  • class
  • const
  • continue
  • debugger
  • default
  • delete
  • do
  • else
  • export
  • extends
  • finally
  • for
  • function
  • if
  • import
  • in
  • instanceof
  • new
  • return
  • super
  • switch
  • this
  • throw
  • try
  • typeof
  • var
  • void
  • while
  • with
  • yield

Future Reserved Keywords:

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

Contextual Keywords:

  • await
  • null
  • true
  • false