function Person() {
this.name = 1;
}
var p1 = new Person();
Person.prototype.name = 2;
console.log(Person.prototype);
console.log(Person.__proto__);
console.log(p1.prototype);
console.log(p1.__proto__);
console.log(Object);
console.log(Object.prototype);
console.log(Object.__proto__);
console.log(p1.prototype == Object);
console.log(p1.prototype === Object);
console.log(p1.__proto__== Object);
console.log(p1.__proto__=== Object);
console.log(p1.__proto__.__proto__);
console.log(p1.__proto__.__proto__ === Object.prototype);
var o = {
name: 3
}
Person.prototype = o;
console.log(Person.prototype);
console.log(Person.__proto__);
console.log(Person.prototype.isPrototypeOf(p1));
var p2 = new Person();
console.log(p2.constructor === Person);