title: Async function stops working when expecting result
body: <p>I have a function which looks like this:</p>
  
  <pre><code>function myAsyncFunction(num){
     if(num&gt;10){
        return true;
     }else{
        return false;
     }
  }
  </code></pre>
  
  <p>I then call this function asynchronously:</p>
  
  <pre><code>myAsyncFunction(100, function(result){
  
     console.log('The result is = ' + result); //this never gets called
  
  });
  </code></pre>
  
  <p>But the console.log statement never gets printed. It should print either true or false.</p>