The ELSE Clause
Tuesday, January 29th, 2008If statements not only allow us to specify statements to be run if a condition is true. By adding an else clause we can also specify alternative statements to be run if the condition is false.
If statements not only allow us to specify statements to be run if a condition is true. By adding an else clause we can also specify alternative statements to be run if the condition is false.
Continuing on with the tutorials on how JavaScript handles decision making, this fourth tutorial introduces the first of the decision making commands - the if statement.