odin-js-fundamentals-part-4/07_tempConversion/tempConversion.js

14 lines
247 B
JavaScript
Raw Normal View History

const convertToCelsius = function(deg) {
return (deg - 32) * (5/9);
};
const convertToFahrenheit = function() {
// x °C ≘ (x ×9/5+ 32) °F
};
// Do not edit below this line
module.exports = {
convertToCelsius,
convertToFahrenheit
};