diff --git a/07_tempConversion/tempConversion.js b/07_tempConversion/tempConversion.js index 14153e0..abea34c 100644 --- a/07_tempConversion/tempConversion.js +++ b/07_tempConversion/tempConversion.js @@ -1,7 +1,9 @@ -const convertToCelsius = function() { +const convertToCelsius = function(deg) { + return (deg - 32) * (5/9); }; const convertToFahrenheit = function() { + // x °C ≘ (x ×9/5+ 32) °F }; // Do not edit below this line