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
Not quite complete statement in summary #3663
Comments
A newly created object will have Basically the prototype chain has to stop somewhere and it's indicated by |
My earlier explanation is incorrect, I could have said this better. To quote from MDN docs
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object_prototypes
This is false. Maybe you can provide some code example/docs for reference. The following is what I get in NodeJS repl. > Object.prototype
[Object: null prototype] {}
To answer this, I'm again quoting MDN
|
Yes, I mistook I understood what you meant to say and corrected the title of the issue to a different one. |
https://javascript.info/function-prototype - on this page in the summary we have this statement:
But here we have this statement:
So I think it's worth mentioning that
F.prototype
can be equal to null only whenObject.prototype
, but when you set prototype forF.prototype
it's not possible.The text was updated successfully, but these errors were encountered: