Skip to content

Commit e03b4af

Browse files
committed
fix typo
1 parent f5b3e30 commit e03b4af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assignments/closure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// ==== Challenge 2: Implement a "counter maker" function ====
99
const counterMaker = () => {
1010
// IMPLEMENTATION OF counterMaker:
11-
// 1- Declare a `count` variable with an value of 0. We will be mutating it, so declare it using `let`!
11+
// 1- Declare a `count` variable with a value of 0. We will be mutating it, so declare it using `let`!
1212
// 2- Declare a function `counter`. It should increment and return `count`.
1313
// NOTE: This `counter` function, being nested inside `counterMaker`,
1414
// "closes over" the `count` variable. It can "see" it in the parent scope!

0 commit comments

Comments
 (0)