title: Javascript How do I wait x seconds before running next line of code?
body: <p>I would like to be able to make something similar to this:</p>
  
  <pre><code>function testFunction() {
      alert("Test");
  }
  
  if (x &gt; y) {
      wait(z);
      testFunction();
  }
  </code></pre>
  
  <p>Thanks!</p>