Answers for "js settimeout call function"

150

javascript settimeout

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

javascript run something after x seconds

setTimeout(function(){
  location.reload();
}, 3000); //run this after 3 seconds
Posted by: Guest on August-07-2020
5

settimeout

// Run anonymous function after 5,000 milliseconds (5 seconds)
setTimeout(() => {
	// Run code
}, 5000);
Posted by: Guest on February-11-2021

Code answers related to "js settimeout call function"

Code answers related to "Javascript"

Browse Popular Code Answers by Language