Open udubey1 opened 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.
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.
Please replace "proto" property to "Object.getPrototypeOf()" method