Skip to content

Commit 21a751a

Browse files
authored
to both -> both to
In the original it's read as if there is two rabbit methods, instead of "both to... and also to..."
1 parent b462bdd commit 21a751a

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ rabbit.run(5); // White Rabbit runs with speed 5.
5555
rabbit.hide(); // White Rabbit hides!
5656
```
5757

58-
Object of `Rabbit` class have access to both `Rabbit` methods, such as `rabbit.hide()`, and also to `Animal` methods, such as `rabbit.run()`.
58+
Object of `Rabbit` class have access both to `Rabbit` methods, such as `rabbit.hide()`, and also to `Animal` methods, such as `rabbit.run()`.
5959

6060
Internally, `extends` keyword works using the good old prototype mechanics. It sets `Rabbit.prototype.[[Prototype]]` to `Animal.prototype`. So, if a method is not found in `Rabbit.prototype`, JavaScript takes it from `Animal.prototype`.
6161

0 commit comments

Comments
 (0)