Merge pull request #1390 from paroche/patch-46

Update article.md
This commit is contained in:
Ilya Kantor 2019-09-29 13:42:32 +03:00 committed by GitHub
commit ef4ce650ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -320,7 +320,7 @@ class User {
new User().sayHi(); new User().sayHi();
``` ```
The property `name` is not placed into `User.prototype`. Instead, it is created by `new` before calling constructor, it's the property of the object itself. The property `name` is not placed into `User.prototype`. Instead, it is created by `new` before calling the constructor, it's a property of the object itself.
## Summary ## Summary