title: JavaScript Variable Hoisting
body: <p>I'm having a problem understanding why name is getting a value here</p>
  
  <pre><code>(function() {
    (function() {
      var name = 'Fido';
    })();
  })();
  
  console.log(name + ' says woof'); //Output: Fido says woof
  </code></pre>
  
  <p>Shouldn't the variable name be local to the internal function?</p>