function person(){
person.prototype.name = "tom";
person.prototype.sayHi = function(){
console.log('Hi');
}
}
const p1 = new person();
const p2 = new person();
console.log(p1.name === p2.name);//true
console.log(p1.sayHi === p2.sayHi );//true
const person = {name : 'Tom'};
const p = Object.create(person);
p.age = 20;
delete p.name;
delete p.age;
console.log(p.name,p.age);//Tom undefined