JavaScript Quiz Practice
Active Recall Drill Session
← Exit SessionQuestion 1 of 1
hardJavaScript
What does this log?
code
function Counter() {
this.count = 0;
setInterval(() => {
this.count++;
}, 1000);
}
const c = new Counter();
setTimeout(() => console.log(c.count), 2500);