In this lesson, we are going to learn all about the most commonly used conditional statement, the if statement.
In JavaScript, there are three forms of the if...else statement.
if statement
if...else statement
if...else if...else statement
The if statement evaluates the condition inside the parenthesis ().
If the condition is evaluated to true, the code inside the body of if is executed.
If the condition is evaluated to false, the code inside the body of if is skipped.
Download
0 formats
No download links available.
#11: JavaScript Tutorial | if Statements | NatokHD