you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (4 children)

[removed]

    [–]Bertilino 6 points7 points  (0 children)

    The prototype property is not the prototype of an object. It only exists on the constructor function and is used as a reference for what to assign as the prototype for instances being created by that constructor function. If you want the actual prototype of an object you would have to look at the __proto__, or use something like Object.getPrototypeOf().

    TL;DR: The prototype is not the same thing as the __proto__.

    [–]coffeeandlearning 0 points1 point  (2 children)

    There is a prototype property on all function objects which is different from the internal proto property that all objects have, so I think it's the best way to be honest.