ECMA-262 describes a set of keywords that can be used to represent the start or end of a control statement, or to perform a specific operation. Rule: Keywords belong to language reservations and cannot be used for identifiers.
All ECMAScript Keywords (* New for fifth edition):
Break does instanceof typeof case Else new Var catch finally return void continue for switch while Deb ugger* function this with the default if throw delete in try
All reserved words in ECMA-262 (third edition):
abstract enum int short Boolean export interface static byte extends long Super Char final native class
Synchronized float package throws const GOTO private Transient debugger implements protected volatile double
Import public
Reserved words may be reprinted as keywords, such as the fifth version of the new debugger is the third edition of the reserved word.
Reserved words in the fifth edition of non-strict mode:
class Enum extends supper const Export Import
Reserved words in strict mode:
Implements package public interface private static let protected yield
Note: Let and yield are new reserved words, and to ensure compatibility recommendations as reference reserved words.
Using keywords and reserved words in JavaScript can be an error. It is not recommended!
Keywords and reserved words in JavaScript