JavaScript, Prototype Chain, Prototype Pattern, Prototypical Inheritance, Modern Javascript.
will have this “country” property. Let’s say that our dogs shouldn’t only be able to bark, but they should also be able to play! We can make this possible by adding a play property to the prototype. class Dog { constructor(name) { this.name = name; } bark() { return `Woof!`; } } const dog1 = new