function Person(name){
this.name = name;
}
p = new Person('John');
log(typeof p.constructor);
var f = {};
log(typeof f.constructor);
var f2 = new Object();
log(typeof f2.constructor);
All three log statements show a 'function'.
Is there a case where the constructor of an object will NOT be a "function"?
Roger source
share