questions about es5 inheriting subconstructor prototypes
Line 5 of the code
I can understand that the prototype of the fourth line of child constructor is Sub.protorype = new Super ()
from the parent constructor new, so here Sub.protorype.constructor = Super
is
for true. What is the reason for redirecting the constructor of the prototype of the child constructor to itself?
I find that Sub.protorype.constructor = Sub
can also inherit