Answers for "how to set a timeout for a function in javascript"

150

javascript settimeout

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

timeout javascript

setTimeout(function(){
 	//code goes here
}, 2000); //Time before execution
Posted by: Guest on April-13-2020

Code answers related to "how to set a timeout for a function in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language