Function references - Please enlighten!
<p>Could anyone explain why the two below are not equal?  I'm basically trying to figure out what's happening behind the scenes.  My understanding was that they'd both refer to the same function but that doesn't seem to be the case.</p>

<pre><code>var foo = function bar() {}

typeof foo //"function"
typeof bar //"function"

foo === bar //false
foo == bar //false
</code></pre>
