Skip to main content.

Web Based Programming Tutorials

Homepage | Forum - Join the forum to discuss anything related to programming! | Programming Resources

JavaScript Manual of Style

Appendix B -- JavaScript Reserved Words

Appendix B

JavaScript Reserved Words


The JavaScript language sets aside certain words that you cannot use as the names of variables, functions, methods, or objects. Some of these words are currently used by JavaScript; others are reserved for future use.

The reserved words are

 finallyprotected
abstractfloatpublic
Booleanforreturn
breakfunctionshort
bytegotostatic
caseifsuper
catchimplementsswitch
charimportsynchronized
classinthis
constinstanceofthrow
continueintthrows
defaultinterfacetransient
dolongtrue
doublenativetry
elsenewvar
extendsnullvoid
falsepackagewhile
finalprivatewith