& lt; ! DOCTYPE html>
<meta charset="utf-8" & gt;
<body>
Var a=new a ();
P. rototype=a;
The function B () {}
Var b=new b ();
C.p rototype=b;
The function C () {}
The console. The log (b);//A {} why console output is regarded as A type b?
</script>
& lt; ! DOCTYPE html>