Skip to content

Commit 04e4fd3

Browse files
lex111dblazhkun
andauthored
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
Co-Authored-By: dnzg666 <dnzg666@gmail.com>
1 parent 220a0d0 commit 04e4fd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • 1-js/08-prototypes/01-prototype-inheritance

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ alert( rabbit.eats ); // true (**)
6262
alert( rabbit.jumps ); // true
6363
```
6464

65-
Здесь линия `(*)` устанавливает `animal` как прототип для `rabbit`.
65+
Здесь строка `(*)` устанавливает `animal` как прототип для `rabbit`.
6666

6767
Затем, когда `alert` пытается прочитать свойство `rabbit.eats` `(**)`, его нет в `rabbit`, поэтому JavaScript следует по ссылке `[[Prototype]]` и находит ее в `animal` (смотрите снизу вверх):
6868

0 commit comments

Comments
 (0)