1
2
3
4
5
6
7
8
import { set } from "https://esm.town/v/std/set";
import { docsCounterDemoState } from "https://esm.town/v/stevekrouse/docsCounterDemoState";
console.log("oldState", docsCounterDemoState);
let newState = await set("docsCounterDemoState", docsCounterDemoState + 1);
console.log("newState", newState);
export let docsCounterDemo = undefined;
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
November 9, 2023