Loading problem…
What is printed?
const obj = { count: 0, get value() { return ++this.count }, } const fns = [] for (let i = 0; i < 3; i++) { fns.push(() => obj.value + i) } console.log(fns.map((fn) => fn()).join(','))