Skip to Content
Javascript for the World Wide Web: Visual Quickstart Guide, Fifth Edition
book

Javascript for the World Wide Web: Visual Quickstart Guide, Fifth Edition

by Tom Negrino, Dori Smith
July 2003
Intermediate to advanced
512 pages
13h 8m
English
Peachpit Press
Content preview from Javascript for the World Wide Web: Visual Quickstart Guide, Fifth Edition

Appendix 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'll be commands in future versions of JavaScript. They're being set aside now so that you won't have to revise your code when new revisions are released.

JavaScript reserved words

These words are part of the JavaScript language as of ECMAScript version 3.

break

for

throw

case

function

try

catch

if

typeof

continue

in

var

default

instanceof

void

delete

new

while

do

return

with

else

switch

 

finally

this

 

Additional words reserved for future ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

You might also like

JavaScript and Ajax for the Web, Sixth Edition: Visual QuickStart Guide

JavaScript and Ajax for the Web, Sixth Edition: Visual QuickStart Guide

Tom Negrino, Dori Smith

Publisher Resources

ISBN: 032119439XPurchase book