r/JavaScriptTips • • May 21 '22

Trying to learn switch statement, having issue with rational operators

I am trying to convert a if, else if and else statement into a switch statement. Following along with MDN; https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Test_your_skills:_Conditionals#conditionals_3

I can’t for the life of my figure out switch statements

5 Upvotes

Duplicates