diff --git a/07_tempConversion/tempConversion.js b/07_tempConversion/tempConversion.js index 6ef3e85..d0e0a71 100644 --- a/07_tempConversion/tempConversion.js +++ b/07_tempConversion/tempConversion.js @@ -1,11 +1,13 @@ -const ftoc = function() { +const ftoc = function(f) { + return Math.round((f - 32) * (5/9)) +} +const ctof = function(c) { + return Math.round(((c * 9/5) + 32)) +} -}; - -const ctof = function() { - -}; +ftoc(32) +ctof(0) // Do not edit below this line module.exports = { ftoc,