From 46732dbe89bc6cd0b49def43ad2267c5b54c22e1 Mon Sep 17 00:00:00 2001 From: NetMan <13informatyka14@gmail.com> Date: Fri, 5 Jan 2024 22:03:43 +0100 Subject: [PATCH] Passed test 1 toCelsius from exercise 07 --- 07_tempConversion/tempConversion.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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