class Rectangle {
constructor(height, width) {
this.height = height;
this.width = width;
console.log(this.height);
console.log(this.width);
}
}
class Test extends Rectangle {
constructor(height, width) {
super(height, width);
}
}
let obj = new Test(12, 7);
/*
run:
12
7
*/