Originally Posted by Philip M
Here's a clue:-
You should get rid of the ugly "undefined" in your prompt boxes.
I know you are just learning, but be aware that both prompt(() and alert() are obsolete, and these days used only for debugging purposes.
Weird about those things being obsolete, our textbook uses them a lot. We have talked about how annoying alert boxes are, but I wanted to focus on learning functions and the switch statement.