Reserved Words

This page contains a list of reserved words in JavaScript, which cannot be used as names of variables, functions or other objects.

Reserved words used in JavaScript

Current list of keywords used in JavaScript Version 5.1:[1][2]

(*) new reserved words in ECMAScript5

A few other reserved words used in JavaScript represent literal values:[1]

Words reserved for JavaScript in the future

Some words have been reserved according to the ECMAScript specification so that they cannot be used as variable names, although currently, they do not have any functionality. These keywords may or may not be reserved words for some ECMAScript specification, and are grouped according to their condition of being reserved.[3]

Words that are always reserved

await enum

Words that are reserved in strict mode

implements private static
interface protected
package public

Words that were reserved in ECMAScript standards 1-3

abstract[] extends native[]
boolean[] final[] short[]
byte[] float[] super
char[] goto[] synchronized[]
class import throws[]
const int[] transient[]
double[] let volatile[]
export long[]

References

  1. ? ab "ECMA-262 5.1: ECMAScript Language Specification" 2011, Section 7.6.1: Reserved Words, (keywords, the two Boolean literals, the null literal, and future reserved words).
  2. ? "JavaScript Reserved Words". w3schools.com. http://www.w3schools.com/js/js_reserved.asp. Retrieved 2016-05-24. 
  3. ? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar

  This article uses material from the Wikipedia page available here. It is released under the Creative Commons Attribution-Share-Alike License 3.0.

JavaScript/Reserved_words
 



 

Connect with defaultLogic
What We've Done
Led Digital Marketing Efforts of Top 500 e-Retailers.
Worked with Top Brands at Leading Agencies.
Successfully Managed Over $50 million in Digital Ad Spend.
Developed Strategies and Processes that Enabled Brands to Grow During an Economic Downturn.
Taught Advanced Internet Marketing Strategies at the graduate level.


Manage research, learning and skills at defaultlogic.com. Create an account using LinkedIn to manage and organize your omni-channel knowledge. defaultlogic.com is like a shopping cart for information -- helping you to save, discuss and share.


  Contact Us