题解 | #使用闭包#
使用闭包
https://www.nowcoder.com/practice/578026cd24e3446bbf27fe565473dc26
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
}

