Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7035841

Browse files
committed
1 parent 465f3bf commit 7035841

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -623,10 +623,6 @@ Array.prototype.diff = function(comparisonArray) {
623623
**Good:**
624624
```javascript
625625
class SuperArray extends Array {
626-
constructor(...args) {
627-
super(...args);
628-
}
629-
630626
diff(comparisonArray) {
631627
var values = [];
632628
var hash = {};
@@ -1155,10 +1151,6 @@ class Rectangle {
11551151
}
11561152

11571153
class Square extends Rectangle {
1158-
constructor() {
1159-
super();
1160-
}
1161-
11621154
setWidth(width) {
11631155
this.width = width;
11641156
this.height = width;
@@ -1186,8 +1178,6 @@ renderLargeRectangles(rectangles);
11861178
**Good**:
11871179
```javascript
11881180
class Shape {
1189-
constructor() {}
1190-
11911181
setColor(color) {
11921182
// ...
11931183
}

0 commit comments

Comments
 (0)