In JavaScript you cannot use these reserved words as variables names, labels names or function names.
Reserved Words:
| abstract | arguments | boolean | break | byte |
| case | catch | char | const | continue |
| debugger | default | delete | do | double |
| else | eval | false | final | finally |
| float | for | function | goto | if |
| implements | in | instanceof | int | interface |
| long | native | new | null | package |
| private | protected | public | return | short |
| static | switch | synchronized | this | throw |
| throws | transient | true | try | typeof |
| var | void | volatile | while | with |
| yield |
Reserved Words added in ECMAScript 5 and 6.
| awaits | class | enum | export |
| extends | import | let | super |
Removed Reserved Words
Following reserved words has been removed from ECMAScript 5 and 6.
| abstract | boolean | byte | char |
| double | final | float | goto |
| int | long | native | short |
| synchronized | throws | transient | volatile |
Recommended Posts:
- JavaScript SyntaxError "variable" is a reserved identifier
- How to replace all words with another words in HTML ?
- How to make horizontal line with words in the middle using CSS?
- How to calculate the number of words in a string using JQuery?
- How to find sub-string between the two words using jQuery ?
- Counting number of repeating words in a Golang String
- How to make sure clients have enough words in textarea by using angularjs in order to disable/enable a button?
- Lodash _.words() Method
- How to count the number of words in a string in PHP ?
- Python program to crawl a web page and get most frequent words
- JavaScript Course | Understanding Code Structure in JavaScript
- Introduction to JavaScript Course | Learn how to Build a task tracker using JavaScript
- JavaScript Course | Loops in JavaScript
- JavaScript Course | Data Types in JavaScript
- JavaScript Course | Printing Hello World in JavaScript
- JavaScript Course | Logical Operators in JavaScript
- JavaScript Course | What is JavaScript ?
- JavaScript Course | Operators in JavaScript
- JavaScript Course | Functions in JavaScript
- JavaScript Course | Variables in JavaScript
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


