odin-default-js-exercises/07_tempConversion/tempConversion.js

14 lines
244 B
JavaScript

const ftoc = function(fTemp) {
return Number(((fTemp - 32) * (5 / 9)).toFixed(1))
};
const ctof = function(cTemp) {
return Number(((cTemp * (9 / 5)) + 32).toFixed(1))
};
// Do not edit below this line
module.exports = {
ftoc,
ctof
};