function makeClosures(arr, fn) { let result=[] for(let i=0;i<arr.length;i++){ let fun=function(){ return fn(arr[i]) } result.push(fun) } return result }