Skip to content

Commit 4a29486

Browse files
committed
minor
1 parent 0a95d04 commit 4a29486

File tree

1 file changed

+2
-2
lines changed
  • 1-js/08-prototypes/02-function-prototype

1 file changed

+2
-2
lines changed

1-js/08-prototypes/02-function-prototype/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ That's the resulting picture:
4141
On the picture, `"prototype"` is a horizontal arrow, meaning a regular property, and `[[Prototype]]` is vertical, meaning the inheritance of `rabbit` from `animal`.
4242

4343
```smart header="`F.prototype` only used at `new F` time"
44-
`F.prototype` is only used when `new F` is called, it assigns `[[Prototype]]` of the new object. After that, there's no connection between `F.prototype` and the new object. Think of it as a "one-time gift".
44+
`F.prototype` property is only used when `new F` is called, it assigns `[[Prototype]]` of the new object. After that, there's no connection between `F.prototype` and the new object. Think of it as a "one-time gift".
4545

46-
After the creation, `F.prototype` may change, new objects created by `new F` will have another `[[Prototype]]`, but already existing objects keep the old one.
46+
If, after the creation, `F.prototype` property changes (`F.property = <another object>`), then new objects created by `new F` will have another object as `[[Prototype]]`, but already existing objects keep the old one.
4747
```
4848
4949
## Default F.prototype, constructor property

0 commit comments

Comments
 (0)