Kode JavaCript yang menunda, berdasarkan milidetik

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