javascript wait 1 second
snippet in javascript

python wait 1 sec

user3731

import time
 
# Wait for 5 seconds
time.sleep(5)
 
# Wait for 300 milliseconds
# .3 can also be used
time.sleep(.300)

javascript settimeout

user5465

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

javascript settimeout

user8595


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

javascript delay 1 second

user4931

//The delay is written in milliseconds, so 1 second = 1 x 1000 = 1000
 setTimeout(function(){ alert("Hello"); }, 1000);
 

javascript wait 1 second

user252

  setTimeout(function(){ 
    console.log("Ready")
}, 1000);

javascript wait 1 second

user3018

setTimeout(() => {console.log('1 second finished!')}, 1000);