Kelvn project

// current temp in kelvin
const kelvin = 293;
// current temp is in celsius
const celsius = kelvin - 273;
// we are converting kelvin to celsius
let fahrenheit = celsius * (9/5) + 32;
// converting fahrenheit to celsius
fahrenheit = math.floor(fahrenheit);
console.log(`the temperature is${fahrenheit} dergrees Fahrenheit);

(module.js:543:28)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)

Do you have a specific question?

Also, see:

How do i solve the Unterminated template literal and math.random error

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.