Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
If 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 se
If 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 se
Classical inheritance with Object.create()
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.
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.
Classical inheritance with Object.create()
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.
With Object.create(), we can create an object with null as prototype. The equivalent syntax in object initializers would be the __proto__ key.
With Object.create(), we can create an object with null as prototype. The equivalent syntax in object initializers would be the __proto__ key.
Using propertiesObject argument with Object.create()
With Object.create(), we can create an object with null as prototype. The equivalent syntax in object initializers would be the __proto__ key.
Object.prototype.isPrototypeOf()
This page was last modified on Jul 10, 2025 by MDN contributors.