> Does JS provide static variables
const f = (() => {
let cnt = 0;
return () => console.log("cnt", cnt);
})();
:-) const f = (() => {
let cnt = 0;
return () => console.log("cnt", cnt);
})();
:-)> If not, then that forces you to lift it to ... the surrounding function