From 6bafdb5094c7184a707f6b2592b22de01174bed1 Mon Sep 17 00:00:00 2001 From: Asartea <76259120+Asartea@users.noreply.github.com> Date: Sat, 12 Nov 2022 21:03:08 +0100 Subject: [PATCH] Accidently got rid of the function parameters --- tempConversion/tempConversion.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tempConversion/tempConversion.js b/tempConversion/tempConversion.js index fc526fa..dc21f6f 100644 --- a/tempConversion/tempConversion.js +++ b/tempConversion/tempConversion.js @@ -1,9 +1,9 @@ -const convertToCelsius = function() { - return Math.round((f - 32) * (5/9) * 10) / 10; +const convertToCelsius = function(fahrenheit) { + return Math.round((fahrenheit - 32) * (5/9) * 10) / 10; }; -const convertToFahrenheit = function() { - return Math.round(((c * 9/5) + 32) * 10) / 10; +const convertToFahrenheit = function(celsius) { + return Math.round(((celsius * 9/5) + 32) * 10) / 10; };