+ 1

What is the difference between if condithion and switch in javascript ?

30th Nov 2018, 4:31 PM
Mohamed Essam
Mohamed Essam - avatar
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
30th Nov 2018, 5:16 PM
Danijel Ivanović
Danijel Ivanović - avatar