Node.js - Timers and Scheduling
Consider this code:
let count = 0;
const id = setTimeout(() => {
count++;
console.log(count);
}, 500);
clearTimeout(id);
setTimeout(() => console.log(count), 1000);
What will be printed?