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

Question 13 #10

Closed
ziga-miklic opened this issue Jun 13, 2019 · 1 comment
Closed

Question 13 #10

ziga-miklic opened this issue Jun 13, 2019 · 1 comment

Comments

@ziga-miklic
Copy link
Contributor

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:

const foo = Object.create(null);
foo.toString() // Uncaught TypeError: foo.toString is not a function

Thank you again for maintaining this repo!

@lydiahallie
Copy link
Owner

Thanks for your input, this would be great to cover in a new question 👍

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

2 participants