Merge pull request #1033 from dhx-mike-palandra/patch-2

Update article.md
This commit is contained in:
Ilya Kantor 2019-06-01 21:27:25 +03:00 committed by GitHub
commit b88b4dc711
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,7 +162,7 @@ Everything is quite simple, just few notes to make things clear:
- 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. - 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.
- The value of `F.prototype` should be either an object or null: other values won't work. - The value of `F.prototype` should be either an object or null: other values won't work.
- The `"prototype"` property only has such a special effect when is set to a constructor function, and invoked with `new`. - The `"prototype"` property only has such a special effect when set on a constructor function, and invoked with `new`.
On regular objects the `prototype` is nothing special: On regular objects the `prototype` is nothing special:
```js ```js