Help with Prototype and Constructor

Continuing the discussion from freeCodeCamp Challenge Guide: Iterate Over All Properties:

My Doubt: Isn’t the prototype also a property of all the instances created with the constructor? Then how is the if-else statement working?

Nope, the value of beagle.prototype is undefined.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.