In JavaScript, the _________ property is a reference to an object from which the current object inherits properties.

  • prototype
  • this
  • parent
  • child
In JavaScript, the prototype property is a reference to an object from which the current object inherits properties and methods. When you access a property or method on an object, JavaScript first looks for it on the object itself and then, if not found, on its prototype. Understanding prototypal inheritance is crucial in JavaScript.
Add your answer
Loading...

Leave a comment

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