From d7bfdc14a8d064bc821e23b0ef2f4d5eda3b800a Mon Sep 17 00:00:00 2001 From: Johan Meester Date: Fri, 23 Jun 2017 13:36:52 +0200 Subject: [PATCH] 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-js/06-advanced-functions/08-settimeout-setinterval/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/06-advanced-functions/08-settimeout-setinterval/article.md b/1-js/06-advanced-functions/08-settimeout-setinterval/article.md index 1cb92015..ec645913 100644 --- a/1-js/06-advanced-functions/08-settimeout-setinterval/article.md +++ b/1-js/06-advanced-functions/08-settimeout-setinterval/article.md @@ -172,7 +172,7 @@ let timerId = setTimeout(function request() { delay *= 2; } - timerId = setTimeout(tick, delay); + timerId = setTimeout(request, delay); }, delay); ```