function Foo1(){
this.name1 = "1";
}
function Foo2(){
this.name2 = "2";
}
Foo2.prototype = new Foo1();
function Foo3(){
this.name = "3";
}
Foo3.prototype = new Foo2();
var foo3 = new Foo3();
console.dir(foo3);
help me analyze why the place where the arrow points is printed is not Foo2 but Foo1,. What is the principle?