I don’t know how to do it. At there is no hint so please help.
What have you tried? What part is working? What isn’t working? Where do you get confused? Which parts do you understand?
I have try tried putting all the if else into the switch and write them as a case. I wrote case bob: but it said bob is undefind.
You won’t have any
else statements. You’ll have a
Be careful that there is a difference between
(bob === "bob") // this is false, they are different things
Look at how it is used in the if else chain
And if you post what you have tried or what part of the instructions you did not understand, we can give advices on that.
You haven’t posted your code here. None of us know what you’ve tried, other than what you’ve said. Makes it difficult.