Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShivaBhattacharjee/KeyZen
/ counter
Function
counter
public/code/javascript/07_arrow_closures.js:5–12 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
3
const
multiply = (a, b) => a * b;
4
5
const
counter = () => {
6
let
count = 0;
7
return
{
8
inc: () => ++count,
9
dec: () => --count,
10
get: () => count
11
};
12
};
13
14
const
c = counter();
15
c.inc();
Callers
1
07_arrow_closures.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected