Is the following code valid?
class Person {
constructor(name, age) {
this.name = name;
this.age = age;
}
}
const person = new Person('John', 20);
console.log(person.name);
console.log(person.age);
Easy
If class B inherits from class A and if class C inherits from class B then does class C inherit from A ?
Author: Eric HostaleryStatus : PublishedQuestion answered 1,266 times