JavaScript/Reserved Words

Previous: Lexical Structure Index Next: Variables and Types

This page contains a list of reserved words in JavaScript, which cannot be used as names of variables, functions or other objects.

Reserved JavaScript keywordsEdit

Current list as of Version 5.1 [1]

  • break
  • case
  • catch
  • continue
  • debugger
  • default
  • delete
  • do
  • else
  • false
  • finally
  • for
  • function
  • if
  • in
  • instanceof
  • new
  • null
  • return
  • switch
  • this
  • throw
  • true
  • try
  • typeof
  • var
  • void
  • while
  • with

Words reserved for JavaScript in the futureEdit

Current list as of Version 5.1 [2]

  • abstract
  • boolean
  • byte
  • char
  • class
  • const
  • double
  • enum
  • export
  • extends
  • final
  • float
  • goto
  • implements
  • import
  • int
  • interface
  • let
  • long
  • native
  • package
  • private
  • protected
  • public
  • short
  • static
  • super
  • synchronized
  • throws
  • transient
  • volatile


Previous: Lexical Structure Index Next: Variables and Types
Last modified on 10 March 2014, at 16:21