title: Javascript Run for loop every x seconds
body: <p>I have a for loop like so:</p>
  
  <pre><code>for(int i=0; i &lt; 10; i++) {
      MyFunc(i);
  }
  </code></pre>
  
  <p>How would I have the program run every 3 seconds so the program would run MyFunc(0) ..wait 3 sec.. MyFunc(1) ..wait 3 sec.. etc?</p>