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
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -160,8 +160,8 @@ In this chapter we briefly described the way of setting a `[[Prototype]]` for ob
160
160
161
161
Everything is quite simple, just few notes to make things clear:
162
162
163
-
- The `F.prototype` property is not the same as `[[Prototype]]`. The only thing `F.prototype` does: it sets `[[Prototype]]` of new objects when `new F()` is called.
164
-
- The value of `F.prototype` should be either an object or null: other values won't work.
163
+
- The `F.prototype` property(don't mess with `[[Prototype]]`) sets `[[Prototype]]` of new objects when `new F()` is called.
164
+
- The value of `F.prototype` should be either an object or `null`: other values won'twork.
165
165
-The`"prototype"`propertyonlyhassuchaspecialeffectwhensetonaconstructor function, and invoked with `new`.
166
166
167
167
On regular objects the `prototype` is nothing special:
0 commit comments