Merge pull request #2458 from martynov-94/patch-2

typo
This commit is contained in:
Ilya Kantor 2021-01-22 08:17:37 +03:00 committed by GitHub
commit 7bd55a44a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()`.