class Animal {}
class Dog extends Animal {}
const d = new Dog();
d instanceof Dog; // true
d instanceof Animal; // trueinstanceof traverses the prototype chain β a Dog is also an Animal.
The prototype chain is a linked structure. Each object has a prototype, which has its own prototype, forming a chain. You can walk this chain using Object.getPrototypeOf().
Challenge: Traverse the prototype chain starting from an object to understand how objects are linked together.