1 parent 2918c9f commit d92cf34Copy full SHA for d92cf34
1 file changed
assignments/closure.js
@@ -8,11 +8,11 @@ const closure = () => {
8
return candidClosure;
9
}
10
11
- return closeItOut();
+ return closeItOut;
12
13
console.log(closure());
14
const newCandid = closure();
15
-console.log(newCandid)
+console.log(newCandid())
16
// ==== Challenge 2: Create a counter function ====
17
const counter = () => {
18
// Return a function that when invoked increments and returns a counter variable.
0 commit comments