Skip to content

Instantly share code, notes, and snippets.

global.a = 0
let timer1 = setInterval(() => {
global.a++
}, 1000)
const wait = (time) => {
return new Promise((res, rej) => {
setTimeout(res, time);
})