title: Why does this sequence of await function calls run in the wrong order?
body: <p>I want to output some text after 2 seconds first, after output some &quot;alert()&quot; second and at the end output some &quot;console.log&quot; by using only async/await. Please help me how to write such a sequence?</p>
  <p>Why the code below does not work</p>
  <pre><code>async function qaz()
  {
      let res1 = await setTimeout(function(){
          console.log(&quot;show me first&quot;);
      }, 2000);
      let res2 = await alert('show me second');
      let res3 = await console.log('show me at the end');
      return [res1,res2,res3];
  }
  </code></pre>