The code contains
let a= new b();
It follows from this equality that a
is an instance of type b
, since it was created using new
and the constructor function b
. On the other hand, a .__ proto __ = b.prototype
, that is, a
prototypically inherits b.prototype
. That is, we get that a
inherits b
and a
inherits b.prototype
(prototype). This is true? Does a
inherit b
?