Javascript keywords and reserved words

Introduction

Javascript has a set of reserved keywords with specific uses.

Javascript keywords are reserved and cannot be used as identifiers or property names.

The complete list of keywords for ECMA-262, sixth edition is as follows:

break       do          in          typeof 
case        else        instanceof  var 
catch       export      new         void 
class       extends     return      while 
const       finally     super       with 
continue    for         switch      yield 
debugger    function    this         
default     if          throw 
delete      import      try 

The following is the list of future reserved words defined in ECMA-262, sixth edition:

Always reserved:

enum         

Reserved in strict mode:

implements  package     public 
interface   protected   static 
let         private 
              
              

Reserved in module code:

await 



PreviousNext

Related