title: Repetition via for loop based on prompt output
body: <p>So essentially what I'm trying to do is to figure out how to repeat a line x number of times based on a prompt's output. </p>
  
  <p>i.e </p>
  
  <pre><code>&lt;script&gt;
  var favnumber = Number(prompt("What is your favorite number?"))
  for(var i=0;i&lt;favnumber;i++){
      System.out.println(name + "is bad at javascript");
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>any idea whats wrong? </p>