title: Javascript: Awaiting resolved promise
body: <p>I would like to know, if awaiting a resolved promise, will lead to a synchronous code execution or may lead to asynchronous one.</p>
  <p>I made this little snippet to check on browsers :</p>
  <pre><code>const promise = new Promise((resolve) =&gt; {
    console.log('exec promise');
    setTimeout(() =&gt; {
      console.log('executed promise');
      resolve();
    }, 1000);
  });
  
  (async () =&gt; {
    console.log('start');
    for (let i = 0; i &lt; 1e8; i += 1) {
      await promise;
    }
    console.log('end');
  })();
  </code></pre>
  <p>And it looks like browsers make it synchronous (considering the screen freeze).</p>
  <p>BUT ... is it due to browser specific implementation ? Or by design ?</p>