10th Aug 2018, 8:38 PM
Michaell Alavedra
2 Answers
0
Don't forget break; after a case block: example: switch(Valor) { case "a" : /*what you want to do*/ break; case "b" : /*-----*/ break; }
10th Aug 2018, 9:40 PM
Théophile
Théophile - avatar
0
Creo que es innecesario si en cada 'case' y en default se finaliza con 'return'
10th Aug 2018, 10:05 PM
Michaell Alavedra