retard dans JavaScript
setTimeout(function() {
//your code here
}, 1000);
Tender Toad
setTimeout(function() {
//your code here
}, 1000);
var delayInMilliseconds = 1000; //1 second
setTimeout(function() {
//your code to be executed after 1 second
}, delayInMilliseconds);
setTimeout(function(){
//code goes here
}, 2000); //Time before execution
await new Promise(resolve => setTimeout(resolve, 1000));
console.log("Hello");
setTimeout(() => { console.log("World!"); }, 2000);
console.log("Goodbye!");
console.log("Hello");
setTimeout(() => { console.log("World!"); }, 2000);