1 2 3 4 5 6 7 8 9 10 11
let state = BigInt(0); export const api = { add(value) { console.log(`Adding ${value} to the counter`); state += value; }, get() { return state; } }