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; };