We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48060ba commit 92a99dfCopy full SHA for 92a99df
1-js/06-advanced-functions/03-closure/article.md
@@ -240,7 +240,7 @@ function User(name) {
240
241
let user = new User("John");
242
// у кода метода "sayHi" есть доступ к внешней переменной "name"
243
-user.sayHi(); // "John"
+user.sayHi(); // "John" (у кода метода "sayHi" есть доступ к внешней переменной "name")
244
```
245
246
А здесь мы просто создаём и возвращаем функцию "счётчик":
0 commit comments