DEV Community


Discussion on: JavaScript - The prototype chain in depth

maktarsis profile image
Max Tarsis

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.

sag1v profile image
Sagiv ben giat Author

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.