title: How can I loop these prompts? I need to ask 5 employees their name and then their monthly sales
body: <blockquote>
    <p>If I run the program and enter "John" and "15000" into the prompt boxes, the alert box says "John your salary this month is $1,5000undefined". For some reason the program is not factoring in the Bonus. The alert box should read "John your salary this month is $2,500."</p>
  </blockquote>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script&gt;
  var EmployeeName, EmployeeSales, Bonus, Commission;
  /* The employee's bonus depends on the information they enter in the prompt box*/
  if(EmployeeSales &lt; 1001) {
  Bonus= 0;
  }
  else if(EmployeeSales &gt; 1000 &amp;&amp; EmployeeSales &lt;10001) {
  Bonus= 100;
  }
  else if(EmployeeSales &gt; 10000) {
  Bonus= 1000;
  }
  
  /*These prompt boxes get information from the user in order to calculate their bonus &amp; commission*/
  for(i=0; i &lt;= 5; i++) {
  EmployeeName = prompt("Please enter your name.");
  EmployeeSales = prompt("Please enter your monthly sales");
  alert(EmployeeName + " your salary this month is" + " $" + 
  (EmployeeSales * 0.1) + Bonus);
  }
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>