When is the `.constructor` property of an object actually used
问题 I've been using code like this for inheriting from another object: // define base object constructor function SuperType(){ // constructor code } // define base object methods on the prototype SuperType.prototype.foo = function() {}; // --------------------------------------------------------------------------- // define object that wants to inherit from the SuperType object function SubType() { // call base object constructor with all arguments that might have been passed SuperType.apply(this