modified the parameter to carry the full spelling instead of just letter
This commit is contained in:
parent
9290e3502c
commit
f7ca8ba56e
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue