-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Question-14 answer is INCORRECT #766
base: master
Are you sure you want to change the base?
Conversation
yes .. I think @codewithmurali is correct as all JavaScript objects have a prototype. When you create a new object in JavaScript, it inherits its prototype from a constructor function or another object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please undo the formatting changes
Hey @jakeherp I've reviewed your request and have made the necessary adjustments to revert the formatting back to its original state. Please let me know if everything looks good on your end now. |
What about the usage of In my opinion, the most correct answer is indeed “B” (since we can have an object with a prototype equals to null), but the explanation currently given is invalid or, at least, not clear enough... #800 Seems to contains a more accurate answer imo |
The provided answer and explanation for the question seem to contain some inaccuracies. Let me clarify:
The correct answer to the statement "All objects have prototypes" is actually:
Answer: A (True)
In JavaScript, all objects have prototypes. The base object, often referred to as the prototype chain, is Object.prototype. Every object, including objects created using the new keyword or object literals, ultimately inherits from Object.prototype unless explicitly specified otherwise.