What will be the output of the code?
let count = 0;
const intervalID = setInterval(() => {
console.log(count);
count++;
}, 100);
setTimeout(() => {
clearInterval(intervalID);
}, 500);
What will be the output of the code?
let count = 0;
const intervalID = setInterval(() => {
console.log(count);
count++;
}, 100);
setTimeout(() => {
clearInterval(intervalID);
}, 500);