javascript If functions are objects then why doesn't this work
<pre><code>var foo = function () { this.bar = 1; }

&gt;&gt; foo.bar 
undefined
</code></pre>

<p>How do I access the property of a function?</p>
