function Dog(name){
this.name=name;
}
let dogA=new Dog('Paul');
Dog.prototype.eat=true;
dogA.eat; //true
Now I destroy Dog.prototype, why dogA.eat still there?
Dog.prototype=null;
dogA.eat;// Still true?
I'm thinking dogA.eat
inherited from Dog.prototype
. Now Dog.prototype
is gone. How can dogA.eat
still exist?