blog-be/test/data/one-second-work.js
2021-04-17 13:54:26 +08:00

8 lines
139 B
JavaScript

let timer;
let count = 0;
setTimeout(() => clearInterval(timer), 1_000);
timer = setInterval(() => {
console.log(++count * 10);
}, 95);