Merge pull request #2798 from HiddenOgre28/patch-1

Fix sentence in article.md
This commit is contained in:
Ilya Kantor 2021-12-21 10:06:39 +03:00 committed by GitHub
commit ad70374397
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):