setTimeout() method inside a while loop
<p>I have read the relevant pages on w3schools and other similar questions here but cannot seem to understand what's wrong about the following bit :</p>

<pre><code>var myfunc03 = function (i) {
  document.getElementById('d01').innerHTML += 100-i+"&lt;br&gt;";
};

var myFunc01 = function() {
  i=0;
  while (i&lt;100) {
    setTimeout(myfunc03(i), 1000)
    i++;
  }
};
</code></pre>

<p>when <code>myFunc01();</code> is run.</p>

<p>There's no pause whatsoever and all possible values for i is listed at once.</p>

<p>Is there a logical mistake here?</p>