In JS with conditional if how do I make an output that says “You typed a word, we need a number” or “negative numbers won't work here”?

后端 未结 0 1802
北荒
北荒 2021-02-04 07:40

I need to have a bunch of numbers asked by prompt, depending on the number there\'s a message, kind of fortune cookies, but if the user enters a word it needs to say "You t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题