Control Flow in JavaScript: If, Else, and Switch Explained
What Is Control Flow?
Imagine you're driving and you reach a traffic light. If it's green, you go. Else if it's yellow, you slow down. Else (red), you stop. You don't do all three, you check the cond