Skip to content

Commit f42fd2a

Browse files
committed
minor
1 parent 31710a3 commit f42fd2a

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
@@ -160,8 +160,8 @@ In this chapter we briefly described the way of setting a `[[Prototype]]` for ob
160160

161161
Everything is quite simple, just few notes to make things clear:
162162

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't work.
165165
- The `"prototype"` property only has such a special effect when set on a constructor function, and invoked with `new`.
166166

167167
On regular objects the `prototype` is nothing special:

0 commit comments

Comments
 (0)