We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d64b562 + 7f11442 commit 2e9c307Copy full SHA for 2e9c307
1-js/09-classes/02-class-inheritance/article.md
@@ -11,7 +11,7 @@ class Animal {
11
this.name = name;
12
}
13
run(speed) {
14
- this.speed += speed;
+ this.speed = speed;
15
alert(`${this.name} бежит со скоростью ${this.speed}.`);
16
17
stop() {
@@ -57,7 +57,7 @@ class Animal {
57
58
59
60
61
62
63
@@ -144,7 +144,7 @@ class Animal {
144
145
146
147
148
149
150
0 commit comments