Skip to content
Advertisement

stringRounds is Looping, Rejecting Valid Value

The loop is working when I enter invalid values, but it still shows the same message when I enter a Valid value. Please help.

JavaScript

Advertisement

Answer

Because you don’t update the value of rounds in the while loop.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement