title: Javascript Conditional Execution Flow
body: <p>If I have a simple conditional in my function (in the example below), would <code>doFinalCheck()</code> always be executed last? If <code>doThis()</code> or <code>doThat()</code> are API requests and would take a bit of time to complete, would <code>doFinalCheck()</code> get executed before the API requests?</p>
  
  <pre><code>checkSomething(array){
    if (array){
      doThis();
    }
    else {
      doThat();
    }
    doFinalCheck();
  }  
  </code></pre>