Challenge: Prototypal Inheritance

This challenge will test your skills in implementing the prototype-based inheritance in JavaScript.

We'll cover the following...

Problem statement #

Study the code given below and then run it.

Press + to interact
function Human(name, age) {
this.name = name;
this.age = age;
};
function Man(name) {
};
function check(){
var obj = new Man("Tommy Tan");
console.log(obj.name)
console.log(obj instanceof Human)
}
check()

It displays undefined and false ...