Kelvin Weather Project

Here’s my code for the Kelvin Weather project:

I cannot get my code to run properly on this assignment. I went back and changed my code to be character for character exactly what is suggested in the hints. It still does not run. Is this an error on codecademy’s side possibly?


Could you share your code? It is impossible to tell what the problem might be without seeing the code.

Hello, I’m trying to solve this project. I did all the steps in the lesson and tried also changing the kelvin degrees to 0 but not working. Don’t know what’s going on.

When I click on save i’m just getting this all the time : The temperature is ${fahrenheit} degrees Fahrenheit.
no actual conversion of degrees / results.
Thank you for any help.

//kelvin temperature

const kelvin = 293;

//kelvin to celsius

const celsius = kelvin - 273;

//fahrenheit to celsius conversion

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

//fahrenheit round down

fahrenheit = Math.floor(fahrenheit);

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

Check your console.log. You put your string within quotes rather than a back tick ( ` ). Fixing that should fix your issue.

I hope this helps!

That fixed it. Thanks for taking the time to help.

Awesome! It’s no problem at all!

I’ve tried everything and redone everything, the code works it just won’t let me continue with the rest of the lesson, I even copied the entire video on the"Get Unstuck" button.

Here’s my code:

//Current Temperature in Kelvin Degrees.

const Kelvin = 0;

//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.);

let Newton = Celsius * (33/100);

Newton = Math.floor(Newton);

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

I had the variable names as all lowercase in mine …
like fahrenheit instead of Fahrenheit

I don’t know if the periods at the end of the strings should or should not be there.

When i click on save code, on the left instruction bar the checkbox won’t change it stays empty is preventing from being able to continue with the project.

i tried changing browser edge and chrome and updating browser but to no avail.

I need help i cant continue!

click on the checkboxes on the left (in the instructions) for the projects.