Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function currencyConverter([arg1,arg2,arg3]){
- let fixedRate = {USD: 1.79549, EUR: 1.95583, GBP: 2.53405, BGN: 1 };
- let result = arg1 * fixedRate[arg2] / fixedRate[arg3];
- return `${result.toFixed(2)} ${arg3}`;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement