title: How do you return from two functions deep in JavaScript
body: <p>The setup is like this:</p>
  
  <pre><code>var blah = function () {
      var check = false;
      verify({ success: function () {
          if... check = true;
          else... check = false;
      }});
      return check;
  };
  </code></pre>
  
  <p>The idea is to use the verify function to check something, and then return <code>true</code> or <code>false</code>. However, the method above will always return <code>false</code> — returning before the <code>success</code> function is called.</p>
  
  <p>How do I get the results I need?</p>