title: while loop doesn't stop in js
body: <p>I want to use function with while to print only 10 numbers starting from the number I choose. </p>
  
  <p>But while loop doesn't stop looping.</p>
  
  <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>id = prompt('Write any number.');
  function numbering(a) {
      var i = a; 
      var j = a + 10;  
      while (i &lt; j) {
         document.write(i);
         i++;
      }
  };
  numbering(id);</code></pre>
  </div>
  </div>
  </p>