javascript-tutorial / en.javascript.info

Modern JavaScript Tutorial
https://javascript.info
Other
23.5k stars 3.86k forks source link

_proto_ property is deprecated #3582

Open udubey1 opened 1 year ago

udubey1 commented 1 year ago

Please replace "proto" property to "Object.getPrototypeOf()" method

joaquinelio commented 1 year ago

proto seems to be there for pedagogical reasons

"As the __proto__ notation is a bit more intuitively obvious, we use it in the examples. "

Still, not sure if this is a good approach.

Anyway, the tutorial always teaches the old and the new ways.

bevand10 commented 11 months ago

Still doesn't fix the fact that __proto__ is a deprecated feature of the language, as mentioned both on MDN and the ECMASCRIPT language reference documentation. See also #3601 .

I fear that not correcting the problem will turn this into just another site that leads people down the wrong path, into old ways - and becomes part of the big 'internet rot' at we suffer from these days.