retraso en JavaScript sin esperar

const syncWait = ms => {
    const end = Date.now() + ms
    while (Date.now() < end) continue
}
Kind Kouprey