Answers for "Javacript code that delays, based on Milliseconds"

0

Javacript code that delays, based on Milliseconds

function wait(timeout){
    return new Promise(resolve=>setTimeout(resolve, timeout));
}

// in this line of code, change "<time>" with int of Milliseconds
await wait(<time>).then(()=>{});
Posted by: Guest on September-17-2021

Code answers related to "Javacript code that delays, based on Milliseconds"

Code answers related to "Javascript"

Browse Popular Code Answers by Language