title: Is there an equivalent Javascript or Jquery sleep function?
body: <p>I want something like this in javascript.</p>
  
  <pre><code>for (i = 0; i &lt; 10; i++) {
      alert(i);
      // now sleep 1 sec
      sleep(1000);
  }
  </code></pre>
  
  <p>is there a built in Javascript or Jquery for this?</p>
  
  <p>Thank you!</p>