+ 1

Why currency converter doesn't work ?

This is the correct answer : function main() { var amount = parseFloat(readLine(), 10); var rate = parseFloat(readLine(), 10); function convert(amount , rate){ var p = amount*rate; return p; } console.log(convert(amount, rate)); }

27th Aug 2021, 11:50 AM
Ehsan Safari
Ehsan Safari - avatar
1 ответ
+ 3
But this is not a right place to share your solutions. https://www.sololearn.com/discuss/1316935/?ref=app
27th Aug 2021, 12:23 PM
Simba
Simba - avatar