Which of the following is true about the prototype chain in JavaScript?

  • The prototype chain allows access to properties and methods of an object's prototype and its prototype's prototype, forming a chain.
  • The prototype chain only includes direct parent objects.
  • The prototype chain is static and cannot be modified dynamically.
  • The prototype chain is not used in JavaScript.
The prototype chain in JavaScript allows access to properties and methods of an object's prototype, its prototype's prototype, and so on, forming a chain. It is a fundamental concept in JavaScript's object-oriented programming.
Add your answer
Loading...

Leave a comment

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