Project Review Please provide the review on my code thanks

//value of kelvin for today’s forcast

const kelvin = 293;

//value of celsius for today’s forcast

const celsius = kelvin - 273;

//value of fahrenheit for today’s forcast

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

//converted it to round down

Fahrenheit=Math.floor(Fahrenheit);

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

//converting to Newton Scale

let Newton = celsius *(33/100);

Newton=Math.floor(Newton);

//logging Newton scale

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

Looks great! :smiley:

Hello @devninja29322, welcome to the forums! It seems like you’ve done this very well; there’s just one thing: in JS, the general convention is the variable (and function) names start with a lowercase letter-which you’ve done with celsius and kelvin, but not with Fahrenheit and Newton. Other than that, great job!


Aside, in future, when you post code, can you format it as outlined in this thread? It just makes it easier to read.

Thank you very much, I will keep that in mind , thanks

1 Like

Please review my other projects if you can Dog years and Magic ball too