Skip to content

Commit cc25e23

Browse files
committed
minor
1 parent f72af57 commit cc25e23

File tree

2 files changed

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

2 files changed

+2
-2
lines changed

1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ importance: 5
66

77
The task has two parts.
88

9-
We have an object:
9+
We have objects:
1010

1111
```js
1212
let head = {

1-js/08-prototypes/01-prototype-inheritance/4-hamster-proto/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Let's look carefully at what's going on in the call `speedy.eat("apple")`.
1010

1111
So all hamsters share a single stomach!
1212

13-
Every time the `stomach` is taken from the prototype, then `stomach.push` modifies it "at place".
13+
Both for `lazy.stomach.push(...)` and `speedy.stomach.push()`, the property `stomach` is found in the prototype (as it's not in the object itself), then the new data is pushed into it.
1414

1515
Please note that such thing doesn't happen in case of a simple assignment `this.stomach=`:
1616

0 commit comments

Comments
 (0)