JSFiddle - React, Tailwind, and code Playground
by nathanesa
JavaScript
let currency = prompt('Enter the name of the currency.', 'USD');
let exchangeRate = prompt('Enter the current exchange rate.', '0.7');
let australianDollars = prompt('How many Australian dollars do you want to convert?', '1000');
let result = australianDollars * exchangeRate;
document.write(australianDollars + ' AUD / ' + result + ' ' + currency);