JavaScript supports a compact set of statements that you can use to incorporate a great deal of interactivity in Web pages. This chapter provides an overview of these statements.
Any expression is also a statement.
See the Client-Side JavaScript Reference for details about the statements in this chapter. A conditional statement is a set of commands that executes if a specified condition is true. The condition can be any JavaScript expression that evaluates to true or false. The statements to be executed can be any JavaScript statements, including further nested if statements. Do not confuse the primitive Boolean values true and false with the true and false values of the Boolean object.