Skip to content

Commit 48060ba

Browse files
Apply suggestions from code review
Co-authored-by: Dmitriy <proteinr@gmail.com>
1 parent 458451a commit 48060ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

1-js/06-advanced-functions/03-closure/article.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ function User(name) {
239239
}
240240

241241
let user = new User("John");
242-
user.sayHi(); // "John" у кода метода "sayHi" есть доступ к внешней переменной "name"
242+
// у кода метода "sayHi" есть доступ к внешней переменной "name"
243+
user.sayHi(); // "John"
243244
```
244245
245246
А здесь мы просто создаём и возвращаем функцию "счётчик":

0 commit comments

Comments
 (0)