This commit is contained in:
Ilya Kantor 2019-08-05 23:45:37 +03:00
parent 3f8fb3d87b
commit f72af57b17
4 changed files with 5 additions and 4 deletions

View file

@ -3,4 +3,5 @@
That's because `this` is an object before the dot, so `rabbit.eat()` modifies `rabbit`.
Property lookup and execution are two different things.
The method `rabbit.eat` is first found in the prototype, then executed with `this=rabbit`
The method `rabbit.eat` is first found in the prototype, then executed with `this=rabbit`.