Public
Script
1
2
3
4
5
6
7
import { currency } from "https://esm.town/v/stevekrouse/currency?v=23";
// Convert amount from JPY -> SGD
export const jpySgd = async (amount: number = 1000000) => {
let amountSgd = await currency("sgd", "jpy", amount);
return amountSgd;
};
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