Answer the question
In order to leave comments, you need to log in
Why is switch-case compared to if/else?
I understand the question is stupid. But, as far as I understand, this operator only checks for strict equality. After all, you can’t write conditions there more, less, etc. Why is switch-case compared to if/else then?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question