Skip to content

Commit 2c6e9f5

Browse files
authored
trivial fix for Q5
1 parent 221ee9c commit 2c6e9f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

challenges/async-challenges.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ for (var i = num1; i >= num2; i--) {
113113
var num1 = 10, num2 = 1;
114114
for (var i = num1; i >= num2; i--) {
115115
(function (i) {
116-
setTimeout(console.log, (num1 - i) * 1000,i);
116+
setTimeout(function() { console.log(i); }, (num1 - i) * 1000);
117117
})(i);
118118
}
119119
```

0 commit comments

Comments
 (0)