You can’t really switch on two variables like that. I mean, you can, but it will only base the switch on the last variable in the list. Personally, I would not use a switch here, because you have two variables you need to check, which a switch isn’t really going to help you with.
Do you think you can figure out another way to say “If a is less than 0 or b is less than 0 then return undefined” in code?
Thank you very much for this explanation. I guess I was really just excited cause I had just learnt switch and was eager to try it out hehe… I’d stick to using if (a < 0 || b < 0). Once again thanks very much I appreciate.