0
How do you not make switch statements case-sensitive?
3 Answers
+ 1
You can format the string before the switch statement.
var str = 'String';
str = str.toLowerCase;
switch(str):
+ 1
Hi I tested out your codes, it would directly go to default rather than the other cases I've typed in. Why is that?
0
i did it wrong. str.toLowerCase()