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