DEV Community

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

Collapse
 
aminnairi profile image
Amin

Hi there, great article and well explained.

Isn't __proto__ obsolete now? I though that Object.setPrototypeOf and Reflect.setPrototypeOf were the successors for that API?

Collapse
 
kabir4691 profile image
Kabir Nazir • Edited

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.