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)
This commit is contained in:
parent
32518b7e76
commit
a2561dc123
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ class Rabbit extends Animal {
|
||||||
let rabbit = new Rabbit("White Rabbit");
|
let rabbit = new Rabbit("White Rabbit");
|
||||||
|
|
||||||
rabbit.run(5); // White Rabbit runs with speed 5.
|
rabbit.run(5); // White Rabbit runs with speed 5.
|
||||||
rabbit.stop(); // White Rabbit stands still. White rabbit hides!
|
rabbit.stop(); // White Rabbit stands still. White Rabbit hides!
|
||||||
```
|
```
|
||||||
|
|
||||||
Now `Rabbit` has the `stop` method that calls the parent `super.stop()` in the process.
|
Now `Rabbit` has the `stop` method that calls the parent `super.stop()` in the process.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue