What is the value of const result? my guess was (3, 1). This is confusing to me so any help would be appreciated.
function makeCounter() {
let count = 0;
return function() {
count += 1;
return count;
}
}
const counter1 = makeCounter();
const counter2 = makeCounter();
counter1();
counter1();
const c1 = counter1();
const c2 = counter2();
const result = [c1,c2];
console.log(result)