Control Flow in JavaScript: If, Else, and Switch Explained
When writing programs, we often need to make decisions.
For example:
Should a user be allowed to log in?
Is a student passed or failed?
Which day of the week is it?
Is a number positive or negativ
sushruto.hashnode.dev5 min read