Conditional statements are sets of commands that execute if specified conditions are true. JavaScript supports three conditional statements:
if...else Statements
Inline if Statements
switch Statements