Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain how prototypal inheritance works #415

Open
bodyazinchenko opened this issue Mar 1, 2024 · 2 comments
Open

Explain how prototypal inheritance works #415

bodyazinchenko opened this issue Mar 1, 2024 · 2 comments

Comments

@bodyazinchenko
Copy link

https://www.greatfrontend.com/questions/quiz/explain-how-prototypal-inheritance-works

In this chapter, it is described that:

Using Object.create to build the inheritance chain is no longer recommended. Use Object.setPrototypeOf instead.

But the mdn documentation says the opposite, that the preferred method for setting prototypes is Object.create() - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf

image

I suggest to change this sentence

@manhphim
Copy link

Same finding there. Hope to see this change soon

@finfin
Copy link

finfin commented Dec 2, 2024

Or maybe there can be some references / explanations to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants