0
How can i fix when a user Enter a string instant of Entering a number? Help me out!
In this code i use only prompt to input from user i can use input box in HTML but this is the challenge. This is my code..... https://code.sololearn.com/WE6jNN7HNg95/?ref=app
1 Respuesta
+ 1
Just parseInt() from the prompt and check it for NaN:
https://code.sololearn.com/WcrONiYM2QJK/#js