opóźnienie w JavaScript bez oczekiwania
const syncWait = ms => {
const end = Date.now() + ms
while (Date.now() < end) continue
}
Kind Kouprey
const syncWait = ms => {
const end = Date.now() + ms
while (Date.now() < end) continue
}