Code javacript qui retarde, basé sur des millisecondes

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(()=>{});
The Arborist