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.
|
|
|
|
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 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 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 |
|
|
|
|
|
|
© Copyright 1998-
Mike Murach & Associates, Inc. All rights reserved.
|
|
|