JavaScript Quiz Practice
Active Recall Drill Session
← Exit SessionQuestion 1 of 1
easyJavaScript
What does this log?
code
function makeCounter() {
let count = 0;
return () => ++count;
}
const a = makeCounter();
const b = makeCounter();
console.log(a(), a(), b());