Skip to content

Commit ccbc49e

Browse files
committed
fix
1 parent 9b39291 commit ccbc49e

File tree

1 file changed

+1
-1
lines changed
  • 1-js/07-object-oriented-programming/10-class-inheritance

1 file changed

+1
-1
lines changed

1-js/07-object-oriented-programming/10-class-inheritance/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Let's get a little deeper under the hood of `super`. We'll see some interesting
267267

268268
First to say, from all that we've learned till now, it's impossible for `super` to work.
269269

270-
Yeah, indeed, let's ask ourselves, how it could technically work? When an object method runs, it gets the current object as `this`. If we call `super.method()` then, how to retrieve that method? In other words, we need to take the `method` from the parent prototype of the current object. How, technically, we (or a JavaScript engine) can do it?
270+
Yeah, indeed, let's ask ourselves, how it could technically work? When an object method runs, it gets the current object as `this`. If we call `super.method()` then, how to retrieve the `method`? Naturally, we need to take the `method` from the prototype of the current object. How, technically, we (or a JavaScript engine) can do it?
271271

272272
Maybe we can get it `[[Prototype]]` of `this`, as `this.__proto__.method`? Unfortunately, that won't work.
273273

0 commit comments

Comments
 (0)