34,333
edits
Changes
→The JavaScript if Structure
Conditional statements control the parts of a script that executed depending the result of a particular expression (i.e whether an expression returns a boolean ''true'' or ''false'' value). The two types of conditional structures are ''if'' and ''if ... else''. In this section we will take a closer looka t both of these condtional structures.
=== The JavaScript ''if '' Structure ===
In both cases the ''if'' statement is followed by the expression to be evaluated. In this section we will take