JavaScript - The prototype chain in depth

Sagiv ben giat on November 09, 2019

Learn the concept of inheritance with the prototype chain Originally posted at my personal blog debuggr.io In this article we will lear... [Read Full]
markdown guide

Thanks for the great post. I like your way of explaining things step by step and how you go from low-level details like prototypes to abstractions like class. It shows that there is no black magic under the hood, just language constructions to make a dev's life easier.


Thanks for the feedback, im so glad you liked it 🙃


Awesome post! It's perhaps the best I've read about prototypal inheritance. Even better than some 40min or so videos trying to explain this. You are really good at decomposing something complex into small and explainable steps 👍. This will probably remain in my bookmarks as a go to reference I'll share with anyone that wants to understand classes under the hood and more. Low-level prototypal approach offers more control and flexibility but comes at a greater responsibility and more risk :).
I'm looking forward to reading your future posts!


wow, thanks for the awesome feedback! I'm so glad you find it useful. You can subscribe to my blog to get notified when a new post is released debuggr.io 🤓


can i translate this article to Chinese and share it with my friends?


Yeah sure, maybe link it to mine to keep the context


In section named Constructor Functions - Sub Classing,first code segment,has a unnessary statement paidPlayerFunctions ~


Awesome job, I really liked it! :)

if you do not mind, I would also recommend adding the use of object.assign and object spread (with their features) as an alternative for Object.create and Object.setPrototypeOf.

But yeah, in general, what you wrote should be enough.


Thanks for the great feedback Max, though i'm not sure i follow regarding the Object.assign mention. AFAIK, it doesn't have anything to do with manipulating the proto chain.


What a great post ,you churned down all the inheritance complexities into simple steps which are very easy to understand.

code of conduct - report abuse