Level 1 · Foundations
Module 3: Decisions and Logic
Comparison operators
Compare values with ===, !==, <, >, <= and >=, explain why === is preferred over ==, and compare strings correctly.
Lesson 12
Logical operators
Combine conditions with &&, || and !, predict short-circuit evaluation, and use logical operators to choose values.
Lesson 13
If, else if and else
Write if, else if and else statements, order conditions correctly, use blocks and guard clauses, and avoid assignment-instead-of-comparison mistakes.
Lesson 14
Switch statements and conditional expressions
Use switch for one value compared against many cases, remember break, and use the conditional (ternary) operator for short two-way choices.
Lesson 15
Building decision-making applications
Plan a decision-making program from requirements, combine comparisons, logical operators and conditionals, and test it with boundary values.
Module mastery assessment
Eight questions and a practical task covering Lessons 11 to 15: comparisons, logical operators, if/else, switch and decision rules.