Merge pull request #1403 from paroche/patch-46

Update article.md
This commit is contained in:
Ilya Kantor 2019-10-02 10:39:00 +03:00 committed by GitHub
commit 0280d51f7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,7 @@ Although, there are important differences.
1. First, a function created by `class` is labelled by a special internal property `[[FunctionKind]]:"classConstructor"`. So it's not entirely the same as creating it manually. 1. First, a function created by `class` is labelled by a special internal property `[[FunctionKind]]:"classConstructor"`. So it's not entirely the same as creating it manually.
Unlike a regular function, a class constructor must be called with `new`: And unlike a regular function, a class constructor must be called with `new`:
```js run ```js run
class User { class User {