Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The Object.create() static method creates a new object, using an existing object as the prototype of the newly created object.
The object which should be the prototype of the newly-created object.
propertiesObject OptionalIf specified and not undefined, an object whose enumerable own properties specify property descriptors to be added to the newly-created object, with the corresponding property names. These properties correspond to the second argument of Object.defineProperties().
A new object with the specified prototype object and properties.
Thrown if proto is neither null nor an Object.
Below is an example of how to use Object.create() to achieve classical inheritance. This is for a single inheritance, which is all that JavaScript supports.
Note that there are caveats to watch out for using create(), such as re-adding the constructor property to ensure proper semantics. Although Object.create() is believed to have better performance than mutating the prototype with Object.setPrototypeOf(), the difference is in fact negligible if no instances have been created and property accesses haven't been optimized yet. In modern code, the class syntax should be preferred in any case.
Object.create() allows fine-tuned control over the object creation process. The object initializer syntax is, in fact, a syntax sugar of Object.create(). With Object.create(), we can create objects with a designated prototype and also some properties. Note that the second parameter maps keys to property descriptors — this means you can control each property's enumerability, configurability, etc. as well, which you can't do in object initializers.
With Object.create(), we can create an object with null as prototype. The equivalent syntax in object initializers would be the __proto__ key.
By default properties are not writable, enumerable or configurable.
To specify a property with the same attributes as in an initializer, explicitly specify writable, enumerable and configurable.
You can use Object.create() to mimic the behavior of the new operator.
Of course, if there is actual initialization code in the Constructor function, the Object.create() method cannot reflect it.
| ECMAScript® 2027 Language Specification # sec-object.create |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 10, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.