In JavaScript, the _______ method is used to create a new object using an existing object as the prototype of the newly created object.

  • Object.create()
  • Object.assign()
  • Object.extend()
  • Object.instantiate()
In JavaScript, the Object.create() method is used to create a new object with the specified prototype object. It allows you to create objects that inherit properties and methods from an existing object, making it a powerful tool for prototypal inheritance.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *