This is the parent class 

```
function Person(name,age)
{
    this.name = name;
    this.age =age;
    this.alertAge = function(){
        alert(age)
    };
    this.alertName = function(){
        alert(this.name)
    }
    this.setName = function(name){
        this.name = name;
    }
}

```

This is the Level 1 child class 

```
function Student(name,age,id){
    this.id = id;
    Person.call(this,name,age);
}

```

This is the Level 2 child class 

```
function IStudent(name,age,id,children)
{
    this.children = children;
    Student.call(this,name,age,id)
}

```

This is the Level 1 child object 

```
let s1 = new Student('Jacob',21,1001);
console.log(s1)

```

This is the Level 2 child object

```
let s2 = new IStudent('Jonathan',28,1002,1);
console.log(s2)
s2.setName('Ramoji');
console.log(s2)

```