title: setInterval with loop time
body: <pre><code>setInterval(function(){}, 200)
  </code></pre>
  
  <p>this code run the function each 200 miliseconds, how do I do it if I only want the function to be ran 10 times. </p>
  
  <p>thanks for help.</p>