Skip to content

Commit 7bd55a4

Browse files
authored
Merge pull request #2458 from martynov-94/patch-2
typo
2 parents f0d389e + 0deca2c commit 7bd55a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/09-classes/01-class/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ user.sayHi();
5151

5252
When `new User("John")` is called:
5353
1. A new object is created.
54-
2. The `constructor` runs with the given argument and assigns `this.name` to it.
54+
2. The `constructor` runs with the given argument and assigns it to `this.name`.
5555

5656
...Then we can call object methods, such as `user.sayHi()`.
5757

0 commit comments

Comments
 (0)