Can anyone help me with this loop : <p>I want my loop to count from 1 to 10 and then print to the document 1,2 and so on.</p>

<p>I tried to nest a while loop within a for loop but it counts from 1 to 10 and then prints out 10 results</p>

<pre><code>for (var i = 0; i &lt;= 10; i++) {
  var j=0;
  while(j &lt;=10){
    document.write('&lt;br&gt;Number '+j);
  j++
  }
}
</code></pre>
