title: Javascript wait() function
body: <p>I want to create a JavaScript <code>wait()</code> function.</p>
  
  <p>What should I edit?</p>
  
  <pre><code>function wait(waitsecs) {
      setTimeout(donothing(), 'waitsecs');
  }
  
  function donothing() {
      //
  }
  
  </code></pre>