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

14 lines
224 B
JavaScript

const ftoc = function(fah) {
return Math.round((5/9 * (fah-32))*10)/10;
};
const ctof = function(c) {
return Math.round(((c * 9/5) + 32)*10)/10;
};
// Do not edit below this line
module.exports = {
ftoc,
ctof
};