- Introducing Conditional Statements 8:39
- Comparison Operators 7:19
- Conditional Statements and Operators Review 7 questions
- Use Comparison Operators 1 objective
- Boolean Values 7:32
- Program Multiple Outcomes 5:45
- Booleans and Else If Review 5 questions
- Write an 'if' Statement 1 objective
- Add an 'else if' Clause 1 objective
- Add a Final 'else' Clause 1 objective
- Test Multiple Conditions With the && Operator 3:57
- Test Multiple Conditions With the || Operator 4:04
- Document Your Code with Comments 4:43
- Multiple Conditions and JavaScript Comments Review 6 questions
- The Conditional Challenge 2:17
- The Conditional Challenge Solution 6:23
- Use Multiple Conditions 1 objective
Quiz Question 1 of 5
Which of the following is a valid conditional statement?
Choose the correct answer below:
-
A
if ( day === 'Friday' ) { console.log("The weekend is almost here."); } else (day === 'Monday' ) { console.log("Here comes another week."); } else if { console.log("I wonder what day it is?"); }
-
B
if ( day === 'Friday' ) { console.log("The weekend is almost here."); } else if (day === 'Monday' ) { console.log("Here comes another week."); } else { console.log("I wonder what day it is?"); }
-
C
if ( day === 'Friday' ) { console.log("The weekend is almost here."); } else { console.log("I wonder what day it is?"); } else if (day === 'Monday' ) { console.log("Here comes another week."); }