Skip to content

Commit e4b2d76

Browse files
Update article.md
Original states "set TO a constructor function"; meaning that the value of "prototype" itself should be constructor function. That's too strong; probably what was meant here is that "prototype" is merely a constructor function property.
1 parent 389801a commit e4b2d76

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Everything is quite simple, just few notes to make things clear:
162162

163163
- 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.
164164
- The value of `F.prototype` should be either an object or null: other values won't work.
165-
- The `"prototype"` property only has such a special effect when is set to a constructor function, and invoked with `new`.
165+
- 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:
168168
```js

0 commit comments

Comments
 (0)