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 458451a commit 48060baCopy full SHA for 48060ba
1-js/06-advanced-functions/03-closure/article.md
@@ -239,7 +239,8 @@ function User(name) {
239
}
240
241
let user = new User("John");
242
-user.sayHi(); // "John" у кода метода "sayHi" есть доступ к внешней переменной "name"
+// у кода метода "sayHi" есть доступ к внешней переменной "name"
243
+user.sayHi(); // "John"
244
```
245
246
А здесь мы просто создаём и возвращаем функцию "счётчик":
0 commit comments