We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aa8cd0 commit a2298c3Copy full SHA for a2298c3
loops/exercises/while-Loop-Exercises.js
@@ -12,7 +12,7 @@ let altitudeReached = 0;
12
13
startingFuelLevel = input.question('Enter starting fuel level.(5001 - 29999) ')
14
15
- while (startingFuelLevel <= 5000 || startingFuelLevel >= 30000){
+ while (startingFuelLevel <= 5000 || startingFuelLevel >= 30000 || isNaN(startingFuelLevel)) {
16
console.log("ERROR. Please enter a number greater than 5000 and less than 30000. ")
17
startingFuelLevel = input.question('Enter starting fuel level. ')
18
}
0 commit comments