You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/08-prototypes/02-function-prototype/article.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ That's the resulting picture:
41
41
On the picture, `"prototype"` is a horizontal arrow, meaning a regular property, and `[[Prototype]]` is vertical, meaning the inheritance of `rabbit` from `animal`.
42
42
43
43
```smart header="`F.prototype` only used at `new F` time"
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".
44
+
`F.prototype` property is only used when `new F` is called, it assigns `[[Prototype]]` of the new object.
45
45
46
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.
0 commit comments