Suppose we have the following:
function Super() { // init code } function Sub() { Super.call(this); // other init code } Sub.prototype =
According to this MDN Ref:
isPrototypeOf() differs from the instanceof operator. In the expression object instanceof AFunction, the object prototype chain is checked against AFunction.prototype, not against AFunction itself.
isPrototypeOf()
instanceof
object instanceof AFunction
AFunction.prototype
AFunction