0
why can i make a decision with switch statement
2 Respostas
0
yes u can
switch(condition){
case 'a' : desicion1;
break;
case 'b' : desicion2;
break;
}
0
when we have one condition with more than two cases let say we have var X switch is easy to implemented it's say in case x= something do that. simply switch can make more one compare unlike if statement and it's fast in compiling unlike if too. hope that's help.