JavaScript · Middle · Question 7 of 75

What does Object.create(proto) do?

Explanation

The properties of proto aren't copied - they're accessible through the prototype chain. Object.create(null) creates an object with no prototype at all: a handy "clean" dictionary without inherited keys like toString.

Further reading

Problem with a question

JavaScript · Middle · question 7

Test yourself

Take the JavaScript · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz