Skip to main content
Version: 3.13.0

Object.create()

The Object.create() method creates a new object, using an existing object as the prototype of the newly created object.

Syntax

Object.create(proto)
Object.create(proto, propertiesObject)

Parameters

  • proto
    • : The object which should be the prototype of the newly-created object.
  • propertiesObject optional

Return value

A new object with the specified prototype object and properties.

Exceptions