title: Get return value from setTimeout
body: <p>I just want to get the return value from <code>setTimeout</code> but what I get is a whole text format of the function?</p>
  
  <pre class="lang-js prettyprint-override"><code>function x () {
      setTimeout(y = function () {
          return 'done';
      }, 1000);
      return y;
  }
  
  console.log(x());
  </code></pre>