title: How do I setTimeout a large amount of times? Javascript
body: <p>I am trying to setTimeout a amount of times. I mean i could simply do it like this but I feel like there is a way better way to the same thing. Using a for-loop doesn't feel efficent at all (though I'm a newbie and have no idea).</p>
  
  <pre><code>for (var i = 0; i &lt; 1000, i++;){
      setTimeout(myFunction, 5);
  }
  function myFunction(){
      //Do something cool
  } 
  </code></pre>
  
  <p>Thanks and please don't use any JQuery</p>