Input: const next = makeCounter(5); [next(), next(), next()] Output: [5, 6, 7]
Create an independent counter function that returns its starting value, then increases by one on each call.