ES6 introduces the __________ property in object literals for setting the prototype of the created object.

  • Prototype
  • proto
  • Object.setPrototypeOf()
  • Object.create()
In ES6, the proto property in object literals is used for setting the prototype of the created object. It provides a convenient way to establish the prototype chain for an object.
Add your answer
Loading...

Leave a comment

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