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
The code doesn't work any more! We can see the error trying to call `longEar.eat()`.
335
+
The code doesn't work anymore! We can see the error trying to call `longEar.eat()`.
336
336
337
337
It may be not that obvious, but if we trace `longEar.eat()` call, then we can see why. In both lines `(*)` and `(**)` the value of `this` is the current object (`longEar`). That's essential: all object methods get the current object as `this`, not a prototype or something.
338
338
@@ -382,7 +382,7 @@ Let's see how it works for `super` -- again, using plain objects:
0 commit comments