Answers for "settimeout jquery loop"

30

settimeout jquery

setTimeout(function(){ alert("Hello"); }, 3000);
Posted by: Guest on September-13-2019
0

settimeout with loop js

var time = 1;

var interval = setInterval(function() { 
   if (time <= 3) { 
      alert(time);
      time++;
   }
   else { 
      clearInterval(interval);
   }
}, 5000);
Posted by: Guest on January-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language