Assessment wanted for JS Conditionals 3

This test asks to replace the inner if/else statement from the previous test with a switch statement. I couldn’t think of a way to do this without including comparison operators in the switch.

Can you please advise if my solution is expected or what other approaches could be taken?

Hello @horusofoz

you did it right well done
you can remove the default as all the cases already covered by your case
also there 2 missing semicolon click on the little arrow on the upper right corner then analysis and it will help you spot them

hope that help and have a nice day :slight_smile:


Many thanks :slight_smile: Fixed.

you very welcome :slight_smile: