Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JavaScript setInterval Limits?
- var counter = 0;
- var looper = setInterval(function(){
- counter++;
- console.log("Counter is: " + counter);
- if (counter >= 5)
- {
- clearInterval(looper);
- }
- }, 1000);
Add Comment
Please, Sign In to add comment