A potential issue with JavaScript's prototype chain is that properties added to the prototype are ________ among all objects created with that constructor function.

  • Shared
  • Encapsulated
  • Protected
  • Private
A potential issue with JavaScript's prototype chain is that properties added to the prototype are shared among all objects created with the same constructor function. This means that any modification to the prototype will affect all instances created from that constructor, which can lead to unexpected behavior.
Add your answer
Loading...

Leave a comment

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