Switch statement in JavaScript
When should we use switch statement To improve the readability of a program multiple if else if statements can be replaced with a switch statement.
When should we use switch statement To improve the readability of a program multiple if else if statements can be replaced with a switch statement.