JavaScript Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 2.00

Flow Control Statements

This chapter provides a quick introduction of JavaScript flow control statements. Topics include 'if...then' statements, 'while' statements, 'for' statements, 'break' statements, etc..

What Is a Statement?

Conditional "if" Statements

Conditional "if" Statement Examples

"switch ... case" Statements

"switch ... case" Statement Example

"for" Loop Statements

"for" Loop Statement Example

"while" Loop Statements

"while" Loop Statement Example

Dr. Herong Yang, updated in 2008
Flow Control Statements