You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Here the line `(*)` sets `animal` to be a prototype of `rabbit`.
57
+
Here the line `(*)` sets `animal` to be the prototype of `rabbit`.
58
58
59
59
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):
0 commit comments