JavaScript, Prototype Chain, Prototype Pattern, Prototypical Inheritance, Modern Javascript.
Let’s say we want to create many dogs! In our example, dogs can’t do that much: they simply have a name, and they can bark! class Dog { constructor(name) { this.name = name; } bark() { return `Woof!`; } } const dog1 = new Dog("Daisy"); const dog2 = new Dog("Max"); const dog3 = new Dog("Spot");