+ 2
I gave it a quick read, turns out that it is very rare that this error might occur in your code. You just need to use the switch statement properly. Reasons for this error might be: 1) Switch(x){ } # 's' shouldn't be capital. 2) switch(x); # it shouldn't be terminated like this. 3) switch(x){ case 1: statement break; } case 2: statement break; # never right your cases outside switch().
6th Jan 2022, 2:23 PM
Avinesh
Avinesh - avatar