Control Flow in JavaScript: If, Else, and Switch Explained
Control flow in programming means the order in which the program executes different instructions. It decides which code runs, when it runs, and under what condition it runs.
Without controll flow
cons
if-else-switch-with-sujeet.hashnode.dev3 min read