function outerFunction() {
let x = 10;
function innerFunction() {
x += 5;
console.log(x);
}
return innerFunction;
}
const closureFunc = outerFunction();
closureFunc();
closureFunc(); Post #2059
6.29K
CHALLENGE
- 🤔 12
- 👍 10