• Home
  • Chapters
    • Getting Acquainted
    • Start Me Up
    • Working with Images
    • Form Handling
    • Forms & Expressions
    • Handling Events
    • JavaScript and Cookies
    • Objects and the DOM
  • Resources
    • W3 Schools
    • Google Fonts
    • Awesome Patterns
  • Examples
    • Example 1
    • Example 2
    • Example 3
    • Example 4
    • Example 5
    • Example 6
    • Example 7
    • Example 8
    • Example 9
    • Example 10
  • Contact

JavaScript Reserved Words

ECMAScript Edition 3 Reserved Words

These words are part of the JavaScript language as of ES3.
break for throw
case function try
catch if typeof
continue in var
deeeeeeefault instanceof void
delete new while
do return with
else switch  
finally this  


ES3 Future Reservered Words

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


ECMAScript Edition 5 Reserved Words

This is ES5's list of reserved words. It's similar to that of ES3, but given that browswers primarily support ES3, we recommend that you keep both lists in mind.
break finally this
case for throw
catch function try
continue if typeof
debugger in var
default instanceof void
delete new while
do return with
else switch  


ES5 Future Reserved Words

class import public
const interface static
enum let super
export package yield
extends private  
implements protected  


Other identifiers to avoid


These aren't officaially reserved but since they are part of the JavaScript language, they should still be considered as avoidable especially as function and variable names. The results are unpredictable. Just be aware that some words may work in one browser but will fail in another, so always test, test, test.
abstract get prototype
arguments goto RangeError
Array has ReferenceError
Boolean include RegExp
byte Infinity rounding
call int set
cast internal short
char intrinsic standard
Date is strict
decimal isFinite String
decodeURI isNaN sychronized
decodeURIComponent JSON SyntaxError
double like throws
dynamic long to
each Math transient
encodeURI namespace true
encodeURICompenent NaN type
Error native TypeError
eval null uint
EvalError Number undefined
false Object URIError
final override use
float parseFloat volatile
Function parseInt xml
generator precission  

Top of list ↑


⇐Back To "Getting Acquainted"

©2014 Michael Feucht Credits