What is the result of the following code?
let count = 0;
const timer = setTimeout(() => {
count++;
}, 1000);
clearTimeout(timer);
console.log(count);
What is the result of the following code?
let count = 0;
const timer = setTimeout(() => {
count++;
}, 1000);
clearTimeout(timer);
console.log(count);