Kelvin weather project

The kelvin weather project isn’t working properly. When console.log runs it does not produce "The temperature is 68 degrees Fahrenheit. Please advise.

// kelvin is a const var set to 293

const kelvin = 293;

//celsius is 273 less than kelvin (293)

const celsius = kelvin - 273;

// fahrenheit is calculated by line 7

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

// use math.floor to prevent a decimal 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

Template literals should be enclosed in backticks.

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

// It should be:
console.log(`The temperature is ${fahrenheit} degrees Fahrenheit`);

Make sure you are using backticks (the key with the tilde ~. It is next to the 1 key on US Qwerty keyboards in the top left corner) for template literals.


Thank you sir. I found that out shortly after. :slightly_frowning_face: