title: Why can't I access a returned function with the dot syntax
body: <p>I though that once createFunction runs I'll have access to the inner function.</p>
  
  <pre><code>function createFunction() {
    function printHello() {
      return console.log("hello");
    }
    return printHello;
  }
  
  // Both of these return undefined
  createFunction(printHello());
  createFunction.printHello();
  </code></pre>
  
  <p>Any thoughts?</p>