Skip to content

Commit 92a99df

Browse files
Apply suggestions from code review
Co-authored-by: Aleksandras <alex30955@aol.com>
1 parent 48060ba commit 92a99df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function User(name) {
240240

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

0 commit comments

Comments
 (0)