Murach's JavaScript and DOM Scripting
How to code control statements

Chapter 2 introduces conditional expressions and if, while, and for statements. In this chapter, you'll learn more about coding these expressions and statements. You'll also learn how to use switch, do-while, break, and continue statements.

Chapter 8 How to code control statements
How to code conditional expressions 276
How to use the equality and identity operators 276
How to use the relational operators 278
How to use the logical operators 280
How to code the selection structures 282
How to code if statements with else clauses 282
How to code if statements with else if clauses 284
How to code switch statements 286
How to use a flag to simplify your selection structures 288
How to code the iteration structures 290
How to code while loops 290
How to code do-while loops 292
How to code for loops 294
How to use the break and continue statements 296




Murach's JavaScript and DOM Scripting

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.