You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The answer states that only the base object does not have prototypes. Would it be a great idea to also mention that we can use Object.create() to explicitly remove the prototype chain:
constfoo=Object.create(null);foo.toString()// Uncaught TypeError: foo.toString is not a function
Thank you again for maintaining this repo!
The text was updated successfully, but these errors were encountered:
The answer states that only the base object does not have prototypes. Would it be a great idea to also mention that we can use
Object.create()
to explicitly remove the prototype chain:Thank you again for maintaining this repo!
The text was updated successfully, but these errors were encountered: