javascript - looping from 1 to 50 after the automatic pause for 30 seconds and further looping to 51 to 100 and so on -
how submit looping 1 10. , pause 10 seconds. , looping 11 20. , on please me.
here solution question:
var count = 0; function counter (count) { if(count < 50) { var limit = count + 10; for(var = count; <= limit; i++) { console.log(i); this.count = i; } } } counter(count); setinterval(function() { counter(count); }, 10000); have fun , try write code yourself.
Comments
Post a Comment