minor
This commit is contained in:
parent
4d808231b0
commit
5f540e7210
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue