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
Copy file name to clipboardExpand all lines: 1-js/09-classes/02-class-inheritance/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ Internally, `extends` keyword works using the good old prototype mechanics. It s
64
64
For instance, to find a method for `rabbit.hide()`, the engine checks:
65
65
1. The `rabbit` object (no `hide`).
66
66
2. Its prototype, that is `Rabbit.prototype` (also no `hide`).
67
-
3. Its prototype, that is (due to `extends`) `Animal.prototype`, that has the method.
67
+
3. Its prototype, that is (due to `extends`) `Animal.prototype`, that finally has the method.
68
68
69
69
As we can recall from the chapter <info:native-prototypes>, JavaScript uses prototypal inheritance for build-in objects. E.g. `Date.prototype.[[Prototype]]` is `Object.prototype`, so dates have generic object methods.
0 commit comments