Bonzar: Assessment wanted for Conditionals skill test (task 1-4)

I looking forward to your feedback and comments
All results will be in the console.

In task 3, I found two possible solutions, but something tells me that both of them are not too appropriate for this task))
Nevertheless, what do you think about both solutions, is it acceptable to use them?

Code link:

Task link:

Hi @Bonzar

You probably agree that the version with the many cases feels a bit unpractical :grin:
However, the other version looks pretty good to me. It’s a rather unusual situation to just have a value as switch expression and conditions in the cases, but this is the intended solution. The only thing you could do is removing the first case and adding a default case at the end that handles those out of bound values.

The other three tasks are all fine. :+1: