Files
RetirementCalculator/src/public/scripts/exchangeRate.js
T

6 lines
168 B
JavaScript

async function convert(from) {
const res = await fetch(`https://api.frankfurter.dev/v1/latest?base=${from}`);
const data = await res.json();
return data;
}