Open jsartisan opened 3 months ago
index.js
export function createFunctions() { const functions = []; let i = 0; while(i < 10) { let j = i; let func = function () { console.log(j); }; functions.push(func); i++; } return functions; }
index.js