题解 | #计数器#
计数器
https://www.nowcoder.com/practice/59154c37d06c41b5b0e19b3b26272229
闭包 箭头函数
const closure = () => { // 补全代码 let timer = 1; return () => timer++; }
计数器
https://www.nowcoder.com/practice/59154c37d06c41b5b0e19b3b26272229
const closure = () => { // 补全代码 let timer = 1; return () => timer++; }
相关推荐