en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

_proto_ property is deprecated

Open udubey1 opened this issue 2 years ago • 2 comments

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

udubey1 avatar Sep 28 '23 14:09 udubey1

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.

joaquinelio avatar Oct 09 '23 22:10 joaquinelio

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.

bevand10 avatar Oct 27 '23 14:10 bevand10