From f7ca8ba56e0bafa0a3728333fa59624b39b083f9 Mon Sep 17 00:00:00 2001 From: Isah Jacob Date: Mon, 31 Oct 2022 17:40:10 +0100 Subject: [PATCH] modified the parameter to carry the full spelling instead of just letter --- 07_tempConversion/tempConversion.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/07_tempConversion/tempConversion.js b/07_tempConversion/tempConversion.js index d0e0a71..c29a65c 100644 --- a/07_tempConversion/tempConversion.js +++ b/07_tempConversion/tempConversion.js @@ -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)