Week 5 assessment

Checkpoint quiz

10 mixed-format questions — multiple choice, true/false, predict-the-output, identify-the-error, select-the-code, and scenarios. Review each explanation, score at least 70%, and retry as many times as you like.

Question 1 / 10Predict the output

What does this log?

function makeCounter() {
  let count = 0;
  return () => ++count;
}
const next = makeCounter();
console.log(next(), next());