JavaScript/Reserved Words
This page contains a list of reserved words in JavaScript, which cannot be used as names of variables, functions or other objects.
Reserved JavaScript keywords
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 future
Current list as of Version 5.1 [2]
abstractbooleanbytechar- class
- const
double- enum
- export
- extends
finalfloatgoto- implements
- import
int- interface
- let
longnative- package
- private
- protected
- public
short- static
- super
synchronizedthrowstransientvolatile