Answers for "w3schools settimeout"

150

javascript settimeout

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

delay in javascript

setTimeout(function() {
 //your code here
}, 1000);
Posted by: Guest on November-03-2020
19

js settimeout

setTimeout(() => { alert('Hello') }, 1000)
Posted by: Guest on February-03-2020
5

how to wait in javascript

function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}
Posted by: Guest on September-29-2020
6

set timeout javascript

setTimeout( () => {
 	alert("J'aime les chats"); 
}, 2000);//wait 2 seconds
Posted by: Guest on March-06-2021
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 "Javascript"

Browse Popular Code Answers by Language