function Foo(){} Foo.prototype.add = {} var a = new Foo console.log(Foo.prototype.constructor) console.log(a)