JavaScript Resources
Conditional Statements
Decisions in JavaScript (and in most other programming languages) involve the use of conditional statements.
Conditional statements are chunks of code that ask JavaScript to evaluate a condition, and then decide whether or not to execute a section of code.
Decision making:
There are three types of conditional statements - if, else, and else if.
Let's take a look first at the if, conditional statement.
Next up... the "if" Conditional Statement