Skip to content

Commit d92cf34

Browse files
committed
Fix closure
1 parent 2918c9f commit d92cf34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

assignments/closure.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ const closure = () => {
88
return candidClosure;
99
}
1010

11-
return closeItOut();
11+
return closeItOut;
1212
}
1313
console.log(closure());
1414
const newCandid = closure();
15-
console.log(newCandid)
15+
console.log(newCandid())
1616
// ==== Challenge 2: Create a counter function ====
1717
const counter = () => {
1818
// Return a function that when invoked increments and returns a counter variable.

0 commit comments

Comments
 (0)