diff --git a/README.md b/README.md index c6978534..385c2190 100644 --- a/README.md +++ b/README.md @@ -1203,6 +1203,10 @@ class Square extends Shape { setLength(length) { this.length = length; } + + getArea() { + return this.length * this.length; + } } function renderLargeShapes(shapes) { @@ -1221,7 +1225,7 @@ function renderLargeShapes(shapes) { } let shapes = [new Rectangle(), new Rectangle(), new Square()]; -renderLargeShapes(); +renderLargeShapes(shapes); ``` **[⬆ back to top](#table-of-contents)**