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

16 lines
221 B
JavaScript

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