
This is the representation of prototype chain when I created two instances of Book constructor. The screen-shot is taken from “High Performance Javascript – N.C.Jakas”.
My confusion is about the Book constructor given in the middle (the yellow box with the heading “Book”). As every function in javascript is an instance of Function prototype, shouldn’t this box (Book) has a proto property linking it to prototype of Function.?
Probably that was left out as a simplification. Adding
Functionto the diagram would distract from the main point the author wants to make (the relationship between the user-created classes).Additionally it would lead to the question what
_proto_ofFunctionwould be, crowding the image further.The author probably thought the diagram and all the displayed relations were already confusing enough in its current form.