Easy
How can you check if an object is an instance of a given class?
1class Animal {}2class Dog extends Animal {}34const dog = new Dog();56// Check the instance7const result = // Your implementation here8console.log(result);
1class Animal {}2class Dog extends Animal {}34const dog = new Dog();56// Check the instance7const result = // Your implementation here8console.log(result);