title: Why does alert(); run before console.log();
body: <p><strong>How My Question is Different From Others</strong></p>
  
  <p>I am using ES6 syntax. The other questions I looked at uses ES5 syntax.</p>
  
  <p><strong>The Question</strong></p>
  
  <p>Why does <code>alert();</code> run before <code>console.log();</code>? And can I make it so that <code>console.log();</code> is executed before <code>alert();</code>?</p>
  
  <p><strong>My Code</strong></p>
  
  <pre><code>console.log("Hello!");
  alert("Hi!");
  </code></pre>