Merge pull request #2798 from HiddenOgre28/patch-1
Fix sentence in article.md
This commit is contained in:
commit
ad70374397
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ alert( rabbit.eats ); // true (**)
|
|||
alert( rabbit.jumps ); // true
|
||||
```
|
||||
|
||||
Here the line `(*)` sets `animal` to be a prototype of `rabbit`.
|
||||
Here the line `(*)` sets `animal` to be the prototype of `rabbit`.
|
||||
|
||||
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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue