setTimeout
setTimeout
The global method setTimeout() sets a time to execute a specified function or piece of code when the time has expired.
ex.:
setTimeout(() => {
console.log("Delayed for 1 second.");
}, 1000)
see more https://developer.mozilla.org/en-US/docs/Web/API/setTimeout