Answers for "set timeout and loops javascript"

223

javascript settimeout

setTimeout(function(){
 	alert("Sup!"); 
}, 2000);//wait 2 seconds
Posted by: Guest on June-27-2019
3

javascript settimeout loop

function timeout() {
    setTimeout(function () {
        // Do Something Here
        // Then recall the parent function to
        // create a recursive loop.
        timeout();
    }, 1000);
}
Posted by: Guest on April-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language