✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class Shape {constructor(color) {
this.color = color;
}
describe() {
return \`I am a \${this.color} shape\`;
}
}
class Circle extends Shape {
constructor(color, radius) {
super(color);
this.radius = radius;
}
}
const c = new Circle('red', 5);
console.log(c.describe());