“setTimeout” Kode Jawaban

setTimeout

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

setTimeout

// Run anonymous function after 5,000 milliseconds (5 seconds)
setTimeout(() => {
	// Run code
}, 5000);
Xander

setTimeout

setTimeout(() => console.log('running') , 1000)

// or

setTimeout(() => {
	console.log('running') 
}, 1000);
shahul

setTimeout

console.log("Hello");
setTimeout(() => {  console.log("World!"); }, 2000);
Silly Skylark

setTimeout

 setTimeout(() => {
    }, 2000);
  };
Blue Baboon

setTimeout

function fastFunction (done) {
  setTimeout(function () {
    done()
  }, 100)
}

function slowFunction (done) {
  setTimeout(function () {
    done()
  }, 300)
}
Itchy Ibex

Jawaban yang mirip dengan “setTimeout”

Pertanyaan yang mirip dengan “setTimeout”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya