Skip to content

Commit ec243fb

Browse files
authored
Merge pull request #245 from lilifan/patch-1
correct type mistake
2 parents f1d1cd4 + 3322f52 commit ec243fb

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
@@ -325,7 +325,7 @@ Then the next call is scheduled in `(*)` if we're not done yet.
325325

326326
Pauses between `count` executions provide just enough "breath" for the JavaScript engine to do something else, to react on other user actions.
327327

328-
The notable thing is that both variants: with and without splitting the job by `setInterval` -- are comparable in speed. There's no much difference in the overall counting time.
328+
The notable thing is that both variants: with and without splitting the job by `setTimeout` -- are comparable in speed. There's no much difference in the overall counting time.
329329

330330
To make them closer let's make an improvement.
331331

0 commit comments

Comments
 (0)