What will be the output of the code?
let count = 0;
const timeoutID = setTimeout(() => {
console.log(count);
}, 1000);
count++;
clearTimeout(timeoutID);
console.log(count);
What will be the output of the code?
let count = 0;
const timeoutID = setTimeout(() => {
console.log(count);
}, 1000);
count++;
clearTimeout(timeoutID);
console.log(count);