Consider the following code snippet. What will be the output?
class Shape {
constructor() {
console.log('Creating a shape');
}
toString() {
return 'This is a shape';
}
}
class Circle extends Shape {
constructor() {
super();
console.log('Creating a circle');
}
toString() {
return super.toString() + ' - Circle';
}
}
const circle = new Circle();
console.log(circle.toString());