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 Server-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. If a match is found, the program executes the associated statement.