Kelvin Weather

whats wrong with this

// Current Temperature in Kelvin Degrees

const kelvin = 293;

// Converting kelvin to celsius

const celsius = kelvin - 273;

// Convert celsius to fahrenheit

let Fahrenheit = celsius *(9/5) + 32;

// Round down fahrenheit variable.

fahrenheit = math.floor (fahrenheit)

console.log(The temperature is ${fahrenheit} degrees Fahrenheit.);

Hello @cloud1491985259, welcome to the forums! You might want to check your capitalisation of Fahrenheit:

let Fahrenheit = celsius *(9/5) + 32;
    ^
uppercase
// Round down fahrenheit variable.

fahrenheit = math.floor (fahrenheit)
^
lowercase

I changed the case but I am still getting the same error :frowning:

also,
math.floor
should be
Math.floor

2 Likes

Got it! It worked. Thank you so much!!!