Reserved (key)words
Reserved words in programming are words that cannot be used as identifiers because they mean something or perform a certain function in that particular programming language.
Here is a list of the reserved words in JavaScript:
View on a laptop or desktop to get the optimal view
abstract | arguments | await | boolean |
| break | byte | case | catch |
| debugger | default | delete | do |
| enum | eval | export | extends |
| finally | float | for | function |
| implements | import | in | instanceof |
| let | long | native | new |
| private | protected | public | return |
| super | switch | synchronized | this |
transient | true | try | typeof |
volatile | while | with | yield |
These are the reserved words in JavaScript. The ones marked with a warning sign are words that have been removed from the ECMAScript 5 and 6 standard. Even though they have been removed, you should not use them as variable names because ECMAScript 5 and 6 and not yet fully supported on all browsers.
Last updated on