JavaScript, Prototype Chain, Prototype Pattern, Prototypical Inheritance, Modern Javascript.
to properties on its prototype chain! Since we passed the dog object as pet1's prototype, we can access the bark property. const dog = { bark() { console.log(`Woof!`); } }; const pet1 = Object.create(dog); pet1.bark(); // Woof! console.log("Direct properties on pet1: ", Object.keys(pet1));