Lesson 3 of 10
Operators & Conditions
Operators perform actions on values. Arithmetic: + - * / %. Comparison: === !== > < >= <=. Logical: && || !.
Use if/else if/else to run code only when a condition is true. Always use === instead of == for strict equality.
JS
let score = 85;
if (score >= 90) {
console.log("A");
} else if (score >= 80) {
console.log("B");
} else {
console.log("C");
}