Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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(()=>{});
 
PREVIOUS NEXT
Tagged: #Javacript #code #based #Milliseconds
ADD COMMENT
Topic
Name
6+5 =