const createCounter = () => { let count = 0; return () => { console.log(count++); }; }; const counter1 = createCounter(); const counter2 = createCounter(); counter1(); counter2();