title: Why is the variable not being accessed
body: <p>Can't seem to figure out why its not able to access variable 'a':</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var a = function(){
      console.log('AAA');
  }
  (function(){
      console.log(a);
  })();</code></pre>
  </div>
  </div>
  </p>