看不懂题目,看旁边解析才知道考察的点是闭包
看的旁边大佬的
<script>
const closure = () => {
// 补全代码
let count=0;
return function(){
count++;
return count;
}
// return ()=>count++;
}
</script>