๐if
๐ง under construction
JS โฉ statement โฉ control flow โฉ branch โฉ if
if (condition) statement // one-way branch
if (condition) statement1 else statement2 // two-way branchelse clause is part of the nearest if statement.
if (expr1) statement1 // not this one
if (expr2) statement2 // ... is part of this if statement
else statement3 // else clause ...JavaScript: The Definitive Guide โฉ 5.3.1 if
Last updated
Was this helpful?