Join Nostr
2026-08-08 19:57:13 UTC
in reply to

Evan Prodromou on Nostr: you can also do a closure. ```js const counter = function () { let count = 0; return ...

you can also do a closure.

```js
const counter = function () {
let count = 0;
return function () {
count += 1;
return count;
}
}();
```