Skip to content

Commit 4be5963

Browse files
authored
Merge pull request #1447 from paroche/patch-53
Update article.md
2 parents 9244339 + 86912bc commit 4be5963

File tree

1 file changed

+1
-1
lines changed
  • 1-js/08-prototypes/01-prototype-inheritance

1 file changed

+1
-1
lines changed

1-js/08-prototypes/01-prototype-inheritance/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ The answer is simple: `this` is not affected by prototypes at all.
211211

212212
So, the setter call `admin.fullName=` uses `admin` as `this`, not `user`.
213213

214-
That is actually a super-important thing, because we may have a big object with many methods and inherit from it. Then inherited objects can run its methods, and they will modify the state of these objects, not the big one.
214+
That is actually a super-important thing, because we may have a big object with many methods, and have objects that inherit from it. And when the inheriting objects run the inherited methods, they will modify only their own states, not the state of the big object.
215215

216216
For instance, here `animal` represents a "method storage", and `rabbit` makes use of it.
217217

0 commit comments

Comments
 (0)