Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a2561dc

Browse files
Minor output typo
In the section describing the usage of `"super"`, example output says `// White Rabbit stands still. White rabbit hides!` The `name` member in this example is set to `White Rabbit`, so the second sentence above should say `White Rabbit hides!` (capital R)
1 parent 32518b7 commit a2561dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎1-js/09-classes/02-class-inheritance/article.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class Rabbit extends Animal {
151151
let rabbit = new Rabbit("White Rabbit");
152152
153153
rabbit.run(5); // White Rabbit runs with speed 5.
154-
rabbit.stop(); // White Rabbit stands still. White rabbit hides!
154+
rabbit.stop(); // White Rabbit stands still. White Rabbit hides!
155155
```
156156
157157
Now `Rabbit` has the `stop` method that calls the parent `super.stop()` in the process.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /