1
2
3
4
5
6
7
import { currency } from "https://esm.town/v/stevekrouse/currency?v=23";
export const untitled8638060 = (async () => {
const price = await currency("eth", "usd") || 1;
console.log("price", price, "calculation", 1 / price);
return currency("eth", "usd");
})();
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!
October 23, 2023