+ 7
why not working switch statement properly?
2 ответов
+ 6
Because pro is a string so it fails to match a number. Add a parseInt() to convert around the prompt.
var pro = parseInt(prompt("insert a number", 2));
+ 10
Just a tip:
When your question is solved considering marking the answer which helped you most as best (the tick on the left side of that answer) & if possible, add [Solved] before your question.
That's all, Have a good day. (bye)
https://www.sololearn.com/discuss/345567/?ref=app