Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myVar = setInterval(function(){ setTimer() }, 1000);
- function setTimer() {
- setInterval(function(){ stopTimer() }, 10000);
- }
- function stopTimer() {
- /*Instrucciones a ejecutar antes de que acabe el tiempo*/
- clearInterval(myVar);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement