mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
Complete 7
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
const convertToCelsius = function() {
|
||||
const convertToCelsius = function(degreeinF) {
|
||||
degreeinC = Math.round(((degreeinF - 32) / 1.8) * 10)/10
|
||||
return degreeinC
|
||||
};
|
||||
|
||||
const convertToFahrenheit = function() {
|
||||
const convertToFahrenheit = function(degreeinC) {
|
||||
degreeinF = Math.round(((degreeinC* 1.8) + 32) * 10)/10
|
||||
return degreeinF
|
||||
};
|
||||
|
||||
// Do not edit below this line
|
||||
|
||||
Reference in New Issue
Block a user