var a = "global";
function b(){
var a = "local";
return function c() {
console.log(a);
}
}
b()()// "local"
the above is an example of closures. If js loses the closure features
, how can the function be modified to simulate the closure characteristics of js, so that the output results are consistent with those before the loss of features?