title: javascript prompt number and continue prompting if answer is wrong
body: <p>I need prompt the visitor for an integer between 1 and 100 and to <strong>continue prompting</strong> until a valid number is entered.</p>
  
  <p>Here is what I have:</p>
  
  <pre><code>&lt;script&gt;
  
  var number = parseInt(prompt("Please enter a number from 1 to 100", ""));
  
  if (number &lt; 100) {
      document.write("Your number (" + number + ") is matches requirements", "");
  } else if (isNaN(number)) {
      parseInt(prompt("It is not a number. Please enter a number from 1 to 100", ""));
  } else {
      parseInt(prompt("Your number (" + number + ") is above 100. Please enter a number from 1 to 100", ""));
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>It recognizes the number but fails to re-ask when the number is wrong. Can you please help me and explain what you added?</p>
  
  <p>Thank you very much.</p>