Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // IF:
  2. const conv = [1,0.511,0.0314];
  3. const currencyId = 1;
  4. const baseCurrency = 1;
  5.  
  6. const result = conv[currencyId] / baseCurrency;
  7.  
  8. console.log(result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement