▲ How do you stop JavaScript execution for a while: sleep() at www.ma-no.org▼2 up and 0 down, posted by salvietta 571 days ago 2 comments
tracker1 571 days ago. link 1 point ▲ ▼I tend to call it delay... const delay = (ms) => new Promise(r => setTimeout(r, ms)); ... await delay(1000); // wait a second