Challenge: Inheritance Check
Explore how to validate class inheritance in JavaScript by implementing a function that uses the instanceof operator to distinguish between correct and incorrect inheritance setups. Understand the importance of inheritance over copying constructors and gain practical experience in coding checks for inheritance in object-oriented JavaScript.
We'll cover the following...
We'll cover the following...
Problem statement
This challenge gives you an idea of how to use the instanceof variable. You can use it in checking for inheritance between classes.
You are ...