title: what's difference between nodejs with browser about event-loop in below code?
body: <pre><code>async function async1() {
      console.log("a");
      await  async2(); 
      console.log("b");
  }
  async function async2() {
     console.log( 'c');
  }
  console.log("d");
  setTimeout(function () {
      console.log("e");
  },0);
  async1();
  new Promise(function (resolve) {
      console.log("f");
      resolve();
  }).then(function () {
      console.log("g");
  });
  console.log('h');
  </code></pre>
  
  <p><strong>nodejs</strong> runtime output:  d a c f h <strong>b g</strong> e</p>
  
  <p><strong>Google Browser</strong> runtime output:  d a c f h <strong>g b</strong> e</p>
  
  <p>why output different result?</p>