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
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