loading...

Discussion on: Prototype in Javascript - 02 - The __proto__ property

Collapse
kabir4691 profile image
Kabir Nazir Author

Yes, __proto__ is considered to be obsolete now and instead Object.setPrototypeOf and Object.getPrototypeOf are recommended for a number of reasons. The reasons are explained clearly in javascript.info/prototype-methods.