- 3
whats mising
class Human { constructor(name) { this.name = name; } } class Student extends Human { constructor(name, age) { (name); this.age = age; } }
5 ответов
0
super().constructor before (name)
0
try to create a web code using code bits section and post the link to that here. it will be easier for us to take a look
0
Here is the solution:
class
Human {
constructor(name) {
this.name = name;
}
}
class Student
extends
Human {
constructor(name, age) {
super
(name);
this.age = age;
0
class
extends
super
0
The exact answers of the missing places are:
class
extends
super