1
2
3
4
5
6
7
8
9
import { fetch } from "https://esm.town/v/std/fetch";
export let evaluationFromValExample = (async () => {
const response = await fetch(`https://api.val.town/v1/eval`, {
method: "post",
body: JSON.stringify({ code: "1 + 1" }),
});
return await response.json();
})();