Skip to content

Commit 6fe40fc

Browse files
authored
Changed a word in article.md
Change the phrase "a property" to "the property" in line 57 (`Here the line (*) sets animal to be a prototype of rabbit.`) because it made it sound like an object can inherit more than one prototype at a time.
1 parent 8d04d0d commit 6fe40fc

File tree

1 file changed

+1
-1
lines changed
  • 1-js/08-prototypes/01-prototype-inheritance

1 file changed

+1
-1
lines changed

1-js/08-prototypes/01-prototype-inheritance/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ alert( rabbit.eats ); // true (**)
5454
alert( rabbit.jumps ); // true
5555
```
5656

57-
Here the line `(*)` sets `animal` to be a prototype of `rabbit`.
57+
Here the line `(*)` sets `animal` to be the prototype of `rabbit`.
5858

5959
Then, when `alert` tries to read property `rabbit.eats` `(**)`, it's not in `rabbit`, so JavaScript follows the `[[Prototype]]` reference and finds it in `animal` (look from the bottom up):
6060

0 commit comments

Comments
 (0)