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?
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