Help wanted for JavaScript assessment conditionals assignment 3

Hi there @kfkm!

You are on the right track in your code. The trouble is, switch statements are pretty confusing, especially in terms of how the conditions are written. So don’t worry that you didn’t get this right the first time round.

The best way to write this solution is to use switch(true), and write the cases out more explicitly. See our solution here: https://github.com/mdn/learning-area/blob/master/javascript/building-blocks/tasks/conditionals/marking.md#task-3

And for an explanation of why this works, see my earlier post here: Assessment wanted Conditionals 3

I hope this helps. If you still need more help, don’t hesitate to ping me.

Best regards.