In JavaScript, the ______ property is used to set up inheritance between custom types.

  • inherit
  • prototype
  • extend
  • object
In JavaScript, the prototype property is used to set up inheritance between custom types. It allows one object to inherit properties and methods from another object. This is a fundamental concept in JavaScript's object-oriented programming model.
Add your answer
Loading...

Leave a comment

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