modified the parameter to carry the full spelling instead of just letter

This commit is contained in:
Isah Jacob 2022-10-31 17:40:10 +01:00
parent 9290e3502c
commit f7ca8ba56e
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
const ftoc = function(f) { const ftoc = function(fahrenheit) {
return Math.round((f - 32) * (5/9)) return Math.round((fahrenheit - 32) * (5/9))
} }
const ctof = function(c) { const ctof = function(celsius) {
return Math.round(((c * 9/5) + 32)) return Math.round(((celsius * 9/5) + 32))
} }
ftoc(32) ftoc(32)