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) {
|
||||
return Math.round((f - 32) * (5/9))
|
||||
const ftoc = function(fahrenheit) {
|
||||
return Math.round((fahrenheit - 32) * (5/9))
|
||||
}
|
||||
const ctof = function(c) {
|
||||
return Math.round(((c * 9/5) + 32))
|
||||
const ctof = function(celsius) {
|
||||
return Math.round(((celsius * 9/5) + 32))
|
||||
}
|
||||
|
||||
ftoc(32)
|
||||
|
|
Loading…
Reference in New Issue