B. JavaScript Reserved Words

Reserved words are words that have special meaning to JavaScript. Therefore, they cannot be used as variable or function names.

You’ll recognize many of the reserved words from previous chapters, but others will be unfamiliar. Some of the latter group are future reserved words; i.e., it’s expected that they might be used in future editions of ECMAScript. They’re being set aside now so that you won’t have to revise your code when revisions are released.

ECMAScript Edition 3 Reserved Words

These words are part of the JavaScript language as of ES3.

Image

ES3 Future Reserved Words

ECMAScript Edition 5 Reserved Words

This is ...

Get JavaScript: Visual QuickStart Guide, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.