+ 1
What is the difference between if condithion and switch in javascript ?
2 Answers
+ 9
Switch statements
Another way to write conditional logic is to use a switch statement. While these are used less frequently, they can be quite useful when there are multiple conditions that can be met.
https://code.sololearn.com/WGeBtJgs23Er/?ref=app