— by Lennart
JavaScript prototypes are blueprints for objects, creating an inheritance chain. Objects search for properties or methods not only in themselves but also in their prototype chain. You can extend and share properties/methods across objects by modifying prototypes. A solid grasp of prototypes is essential for effective use of object-oriented principles in JavaScript.
Links
- molily – Organisation von JavaScripten: Konstruktoren, Prototypen und Instanzen
- SelfHTML: Klassen und Vererbung
- DigitalOcean: Understanding Classes in JavaScript
- MediaEvent: Objekte und Prototypen
- MDN: Classes
- MDN: Function.prototype