title: How to wait for a period of time after a function run
body: <p>If I have a function which I would like my js code to run it immediately but after the run, wait for 2 seconds. How to achieve this logic?</p>
  
  <p>(<strong>Note:</strong> It is just the inverse logic compare with <code>setTimeout()</code>, since <code>setTimeout(</code>) first wait a certain amount of time then execute the function.)</p>