Kelvin Weather (step 11 )

I am currently trying to finish the kelvin weather objective. in step 11 it instructs us to go back to the const kelvin var. and change it to 0 which should change the Fahrenheit to -460 however I change the const to 0 , however it doesn’t change to -460 in Fahrenheit. i looked through my code checking it but I don’t see anything wrong with it. I also checked with the video, can anyone see any error in my code that I’m not seeing by any chance?

//kelvin is constant and will be turned to c and then f

const kelvin = 0;

//i shouldn’t have to change 20c so there is no reason to use let

const celsius = 20;

//whatever number that is given from this equation it will be set as the number for fahrenheit

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

//to make sure that fahrenheit is not a decimail by using the math .floor() method it rounds the result down to the nearist whole number

fahrenheit = Math.floor(fahrenheit);

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


To preserve code formatting in forum posts, see: [How to] Format code in posts

Apart from the declaration and initialization of kelvin, you are not using this variable anywhere else in your pasted code. So, changing the value assigned to this variable is not having any effect.

Have a look at Step 3 again (look at the hint for the step as well). You have simply subtracted 273 from 293 and assigned 20 to celsius. You want this calculation to be done not by you, but by your code using an expression involving the kelvin variable.