这是我作业的一部分,但我不知道出了什么问题,任何帮助将不胜感激
var InputNum = prompt("Please enter a number between 50 and 100:", "");
if (isNaN(InputNum)) {
if (InputNum.match(/one|two|three|four|five|six|seven|eight|nine|ten/)) {
alert("while this is a number, it's not really a number to me.");
} else {
alert(InputNum + " doesn't appear to be a number.");
}
} else if (InputNum >= 99 && InputNum <= 51); {
alert("theat number, " + inputNum + ", is not between 50 and 100.");
}
document.write("The user gave a number in the range! " + inputNum + "<br>");
在第 25 行,它提出了标题所述的警告。