title: Hoisting does not work?
body: <p>I stumbled upon this jsfiddle code sample about hoisting <a href="https://jsfiddle.net/phusick/h4bh2m4y/" rel="nofollow">https://jsfiddle.net/phusick/h4bh2m4y/</a></p>
  
  <pre><code>fn1('hello');
  fn2('world');
  
  function fn1(message) {
      console.log('mgs1:', message);
  }
  
  var fn2 = function(message) {
      console.log('msg2:', message);
  }
  </code></pre>
  
  <p>Surprisingly it does not work :</p>
  
  <blockquote>
    <p>Uncaught TypeError: fn2 is not a function</p>
  </blockquote>
  
  <p>Is there any error in that program ? </p>