mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
super(length, length) => super(length, width);
This commit is contained in:
parent
32c1d1875d
commit
83af4043f0
@ -975,7 +975,7 @@ class Rectangle {
|
|||||||
|
|
||||||
class Square extends Rectangle {
|
class Square extends Rectangle {
|
||||||
constructor(length) {
|
constructor(length) {
|
||||||
super(length, length);
|
super(length, width);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user