Accidently got rid of the function parameters
This commit is contained in:
parent
c037ad5bf5
commit
6bafdb5094
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue