This commit is contained in:
Ilya Kantor 2019-09-02 14:38:21 +03:00
parent 4d808231b0
commit 5f540e7210
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ alert(user.name); // Jack
alert(user.isAdmin); // false
```
When a function is executed as `new Func(...)`, it does the following:
When a function is executed with `new`, it does the following steps:
1. A new empty object is created and assigned to `this`.
2. The function body executes. Usually it modifies `this`, adds new properties to it.