title: force wait in javascript
body: <p>I want to force a function to wait 1 second before she continues after to do that in javascript .
  For example:</p>
  
  <pre><code>function DoSomething(){
  // wait 1 second
  //continue w.e is this function does.
  }
  </code></pre>
  
  <p>Thanks.</p>