title: What's the difference between setTimeout and Async await?
body: <p>I sort of understand what each is doing. setTimeout, &quot;The setTimeout() method calls a function or evaluates an expression after a specified number of milliseconds.&quot; Async await, returns a promise, and is just a function that can be put in a queue and have the results of the function checked in later.</p>
  <p>But both allow me to &quot;delay code&quot;, they are both asynchronous functions. So when would you use one rather than the other one?</p>
  <p>Thank you for any help!</p>