js settimeout
snippet in javascript

javascript settimeout

user1716

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

settimeout js

user8727


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

 //1000ms = 1 second

timeout javascript

user1214

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

jquery settimeout

user7559

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

settimeout javascript

user6960

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

js settimeout

user6621

setTimeout(() => { alert('Hello') }, 1000)