Skip to content

Commit 4d80823

Browse files
authored
Merge pull request #1305 from paroche/patch-9
Update article.md
2 parents 33c4149 + 25bf9f5 commit 4d80823

File tree

1 file changed

+1
-1
lines changed
  • 1-js/04-object-basics/06-constructor-new

1 file changed

+1
-1
lines changed

1-js/04-object-basics/06-constructor-new/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ alert(user.name); // Jack
2727
alert(user.isAdmin); // false
2828
```
2929

30-
When a function is executed as `new User(...)`, it does the following steps:
30+
When a function is executed as `new Func(...)`, it does the following:
3131

3232
1. A new empty object is created and assigned to `this`.
3333
2. The function body executes. Usually it modifies `this`, adds new properties to it.

0 commit comments

Comments
 (0)