Update article.md
Added "And".
This commit is contained in:
parent
ec99b2c3bd
commit
af6a921df8
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue