typo
wrong order of words
This commit is contained in:
parent
3a0b3f4e31
commit
0deca2cb91
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ user.sayHi();
|
|||
|
||||
When `new User("John")` is called:
|
||||
1. A new object is created.
|
||||
2. The `constructor` runs with the given argument and assigns `this.name` to it.
|
||||
2. The `constructor` runs with the given argument and assigns it to `this.name`.
|
||||
|
||||
...Then we can call object methods, such as `user.sayHi()`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue