1
JavaScriptBeginner#operators#coercion
A function bundled with the lexical scope it was created in, so it keeps access to those outer variables after the outer function returns. Closures power private state, memoization and function factories.
function counter() {
let count = 0;
return () => ++count;
}
const inc = counter();
inc(); // 1
inc(); // 2