We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 667ff35 + b49c571 commit 03bcebdCopy full SHA for 03bcebd
README.md
@@ -1202,6 +1202,10 @@ class Square extends Shape {
1202
setLength(length) {
1203
this.length = length;
1204
}
1205
+
1206
+ getArea() {
1207
+ return this.length * this.length;
1208
+ }
1209
1210
1211
function renderLargeShapes(shapes) {
@@ -1220,7 +1224,7 @@ function renderLargeShapes(shapes) {
1220
1224
1221
1225
1222
1226
let shapes = [new Rectangle(), new Rectangle(), new Square()];
1223
-renderLargeShapes();
1227
+renderLargeShapes(shapes);
1228
```
1229
**[⬆ back to top](#table-of-contents)**
1230
0 commit comments