JavaScript/Reserved Words
From Wikibooks, the open-content textbooks collection
This page contains a list of reserved words in JavaScript, which cannot be used as names of variables, functions or other objects.
[edit] Reserved JavaScript keywords
- break
- case
- catch
- continue
- default
- delete
- do
- else
- false
- finally
- for
- function
- if
- in
- instanceof
- new
- null
- return
- switch
- this
- throw
- true
- try
- typeof
- var
- void
- while
- with
[edit] Words reserved for JavaScript in the future
These words are reserved by ECMAScript v3 for future versions of JavaScript:
- abstract
- boolean
- byte
- char
- class
- const
- debugger
- double
- enum
- export
- extends
- final
- float
- goto
- implements
- import
- int
- interface
- long
- native
- package
- private
- protected
- public
- short
- static
- super
- synchronized
- throws
- transient
- volatile