|
switch doesn't work like that. Each case tests true or false. The best way to do it would be to change the input using the string method toLowerCase() and then just have your case as "mercury"
&& works? if it does, I suspect not the way you think it does, but I confess I have never tried it
|