title: Prototype difference between function declaration and expression
body: <pre><code>var foo = function(){alert('foo')}
  function bar(){alert('bar')}
  </code></pre>
  
  <p>Why does <code>foo.prototype</code> point to Object, but the named function <code>bar.prototype</code> points to itself?</p>
  
  <p>I should add that this behavior is observed from browser console.</p>