We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5b3e30 commit e03b4afCopy full SHA for e03b4af
assignments/closure.js
@@ -8,7 +8,7 @@
8
// ==== Challenge 2: Implement a "counter maker" function ====
9
const counterMaker = () => {
10
// IMPLEMENTATION OF counterMaker:
11
- // 1- Declare a `count` variable with an value of 0. We will be mutating it, so declare it using `let`!
+ // 1- Declare a `count` variable with a 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!
0 commit comments