title: Javascript: Creating loop to check variable if its an int
body: <p>I have a variable that prompts a question. I want to make sure that the person answers with numbers and not "five." But also give an alert message that its not a valid number, and to ask the question again. I am still new and believe I did it incorrectly. Here is what I have so far.</p>
  
  <pre><code>var question = prompt("Enter a number");
  for(i=0; i = question; i++){
      if{
          typeof question != "number");
          console.log("question not number");
          alert("Please try again");
  }
  </code></pre>