DEV Community

Discussion on: The magical world of JavaScript prototypes

Collapse
 
ladybenko profile image
Belén

Thanks!

I'm more keen to use composition over inheritance unless I really need a different type (and in this case, I try not to have a chain, but just a single subtype), but I'm afraid prototypes have nothing to do with this. Composition vs Inheritance is a debate that extends to every Object-Oriented language, independently if they have prototypes or not.