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 b3f522a commit f5b3e30Copy full SHA for f5b3e30
assignments/closure.js
@@ -11,7 +11,7 @@ const counterMaker = () => {
11
// 1- Declare a `count` variable with an value of 0. We will be mutating it, so declare it using `let`!
12
// 2- Declare a function `counter`. It should increment and return `count`.
13
// NOTE: This `counter` function, being nested inside `counterMaker`,
14
- // "closes over" the`count` variable. It can "see" it in the parent scope!
+ // "closes over" the `count` variable. It can "see" it in the parent scope!
15
// 3- Return the `counter` function.
16
};
17
// Example usage: const myCounter = counterMaker();
0 commit comments