Control Flow in JavaScript: If, Else, and Switch Explained.
Learn how to make your JavaScript programs take decisions — just like you do in real life, every single day.
Image shows a real world example how the all statements do work so go through it you will
js-control-flow.hashnode.dev5 min read