functions are object in javascript?
<pre><code>var obj = {};
var fn = function(){};
obj.prop = "some value";
fn.prop = "some value";
assert( obj.prop == fn.prop, "Both are objects, both have the property." );
assert(typeof(obj) === 'object', "Yes its an object");
assert(typeof(fn) === 'object', "why is this not an object");
</code></pre>

<p>I heard from some people around that <code>functions are objects</code> and this is what i am believing so far, but why is the first condition <code>passes</code> well and third one <code>fails</code>. </p>
