Skip to content

Commit 04487f8

Browse files
Update article.md
Typo: F.property => F.prototype
1 parent f74963a commit 04487f8

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ On the picture, `"prototype"` is a horizontal arrow, meaning a regular property,
4343
```smart header="`F.prototype` only used at `new F` time"
4444
`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-
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.
46+
If, after the creation, `F.prototype` property changes (`F.prototype = <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)