Accidently got rid of the function parameters

This commit is contained in:
Asartea 2022-11-12 21:03:08 +01:00
parent c037ad5bf5
commit 6bafdb5094
1 changed files with 4 additions and 4 deletions

View File

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