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.