xxxxxxxxxx
// how to convert kelvin into fahrenheit javascript code
// todays Temperature in kelvin is 293 kelvin
const kelvin = 293;
// convert kelvin to celsius
const celsius = kelvin - 273;
// convert celsius to fahrenheit
let fahrenheit = celsius * (9 / 5) + 32;
// convert decimal value to integer using .floor mehtod
fahrenheit = Math.floor(fahrenheit);
console.log(`The temperature is ${fahrenheit} degrees Fahrenheit.`);
// output
// The temperature is 68 degrees Fahrenheit.