wrong order of words
This commit is contained in:
martynov-94 2021-01-21 18:30:50 +03:00 committed by GitHub
parent 3a0b3f4e31
commit 0deca2cb91
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: When `new User("John")` is called:
1. A new object is created. 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()`. ...Then we can call object methods, such as `user.sayHi()`.