title: Why does a named IIFE result in a ReferenceError outiside of it?
body: <p>Why did I get <em>“<code>ReferenceError</code>: <code>Person</code> is not defined”</em> for the following code?</p>
  <pre class="lang-js prettyprint-override"><code>(function Person() {
    console.log('Hi');
  }());
  console.log(Person);
  </code></pre>
  <p>Since function <code>Person</code> is run, it is first created. However, I cannot explain why it is not then recognized. My only thought is that IIFE ignores the name they are given.</p>