In JavaScript, altering an object’s prototype at runtime can lead to ______ performance impacts.

  • Positive
  • Negative
  • No
  • Minimal
In JavaScript, altering an object's prototype at runtime can lead to "Negative" performance impacts. Modifying prototypes at runtime can cause performance bottlenecks, as it can affect the behavior of all objects that share the same prototype. It's generally recommended to avoid such runtime modifications for performance reasons.
Add your answer
Loading...

Leave a comment

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