- 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
Well done!
You have completed Multiple Conditions and JavaScript Comments Review!
Quiz Question 1 of 6
Consider the following code:
let ships = 10;
let score = 0;
if ( ships === 0 || score === 0 ) {
console.log('Game over.');
} else {
console.log('Your score is 0.');
}
What will appear in the browser's console when the above code runs?
Choose the correct answer below: