一个取钱程序
const taker = function(){
let money = 100
return (n) => {
money = money - n
return money
}
}()
taker(25) // 75
taker(25) // 50
const taker = function(){
let money = 100
return (n) => {
money = money - n
return money
}
}()
taker(25) // 75
taker(25) // 50