Content: /en-US prototype inheritance doc contradiction

Created on 27 May 2020  ·  6Comments  ·  Source: mdn/content

Request type

  • [ ] Please close this issue, I accidentally submitted it without adding any details
  • [ ] New documentation
  • [x] Correction or update

Details


Conflicting info on prototype inheritance. First the docs say not to assign the prototype property directly, then later the example does just that.
url: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain

don't set .prototype
image

later example sets .prototype
image

10 minute task JS

All 6 comments

I'll pick this up.
For context, see this msg on MDN web docs

Thank you, @jchimene

Thank you, @jchimene

onward thru the fog!

Was looking for an issue to pick up and I think this can be closed by https://github.com/mdn/content/pull/2747!

Was looking for an issue to pick up and I think this can be closed by #2747!

Thanks much @amyrlam — will close this out with a link to the associated commit

Fixed by 55715e8

Was this page helpful?
0 / 5 - 0 ratings