Can you help me with why do we pass 'this' as an parameter on the User.call()?
function Admin(name, age, location) {
User.call(this, name, age);
this.location = location;
}
Can you help me with why do we pass 'this' as an parameter on the User.call()?
function Admin(name, age, location) {
User.call(this, name, age);
this.location = location;
}