Conditional Statements
Prerequisites: Operators
A conditional statement runs a block of code only if a condition
evaluates to true.
const temperature = 30;
if (temperature > 25) {
console.log("It's warm");
}
The condition (temperature > 25) must produce a boolean — the block
inside { } only runs when that boolean is true.