Example: Should we allow a user to vote?
let age = 18;
if (age >= 18) {
console.log("You are eligible to vote!");
} else {
console.log("Sorry, you must be 18+ to vote.");
}
Real-life analogy:
If it's raining, take an umbrella. Else, go without one.