Skip to content

Commit d7bfdc1

Browse files
authored
Inner setTimeout() wrongly refering to tick()
In the 'Recursive setTimeout' section in the example for sending server request the inner setTimeout() refers to a non-existing tick() function. Should be the outer request() function.
1 parent 2a0516d commit d7bfdc1

File tree

1 file changed

+1
-1
lines changed
  • 1-js/06-advanced-functions/08-settimeout-setinterval

1 file changed

+1
-1
lines changed

1-js/06-advanced-functions/08-settimeout-setinterval/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ let timerId = setTimeout(function request() {
172172
delay *= 2;
173173
}
174174

175-
timerId = setTimeout(tick, delay);
175+
timerId = setTimeout(request, delay);
176176

177177
}, delay);
178178
```

0 commit comments

Comments
 (0)