function Animal () {
this.species = "animal";
}
function Cat (name,color) {
this.name = name;
this.color = color;
}
Cat.prototype = new Animal ();
Cat.prototype.constructor = Cat;
/ / Cat points to the object generated by Animal. Don"t Cat and Animal
refer to the same prototype? if you overwrite the constructor of Cat, won"t it also overwrite the constructor of Animal? So why is the following sentence not false but
true
alert (Animal.prototype.constructor = = Animal); / / true