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; that is, 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.
break
case
catch
continue
default
delete
do
else
finally
for
function
if
in
instanceof
new
return
switch
this
throw
try
typeof
var
void
while
with
ES3 Future Reserved ...
Get Visual QuickStart Guide: JavaScript, Ninth 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.