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");
我从周围的一些人那里听说,functions are objects
这是我目前所相信的,但为什么第一个条件passes
很好,而第三个条件很好fails
。