Technology Quote by Eric Freeman
““If you change any property in the prototype, it affects all the objects that inherit from that prototype, unless that object has overridden that property.””
About This Quote
Source Book: Head First JavaScript Programming, 2008
Changing a prototype property propagates to all inheriting objects unless they override it.
In simple terms: Prototype changes affect all descendants unless overridden.
Check for overrides before altering prototypes.
Themes
Mood
Type
When to use this quote
- library updates
- framework extensions
- shared configuration
- debugging
Key Concepts
Questions to Reflect On
- Do you understand prototype inheritance?
- When should you avoid prototype mutation?
Overriding can be unintuitive and cause bugs.