Last active
November 5, 2018 14:37
-
-
Save keslo/ec663bfe2a8567d41070cd1ab9989150 to your computer and use it in GitHub Desktop.
setTimeout in recursion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// setTimeout in recursion | |
var timerId = setTimeout(function tick() { | |
/* YOUR CODE HERE */ | |
timerId = setTimeout(tick, 500); | |
} | |
}, 500) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment