JSFiddle - React, Tailwind, and code Playground
JavaScript
var userInput;
while (isNaN(userInput) || !userInput) {
userInput = parseInt( prompt('A number between 1 - 100') ); // 15px 15em 1.3em (parseFloat())
}
alert(userInput);
var userInput;
while (isNaN(userInput) || !userInput) {
userInput = parseInt( prompt('A number between 1 - 100') ); // 15px 15em 1.3em (parseFloat())
}
alert(userInput);