javascript set timeout
snippet in javascript

settimeout jquery

user8325


 setTimeout(function(){ alert("Hello"); }, 3000);
 

javascript settimeout

user5111

setTimeout(function(){
 	alert("Sup!"); 
}, 2000);//wait 2 seconds

timeout javascript

user9424

setTimeout(function(){
 	//code goes here
}, 2000); //Time before execution

jquery settimeout

user2140

setTimeout(function(){ alert("Hello"); }, 3000);

javascript set timeout

user8588

setTimeout(function(){
 	console.log("hello");
}, 3000); //wait for atleast  3 seconds before console logging

javascript set timeout

user2529

var timeToWait = 3000; // 1000 = 1 second
setTimeout(() => {
	console.log("Text printed after 3 seconds");
}, timeToWait);