Function convertCtoF(celsius) { let fahrenheit; var Fahrenheit=(celsius*(9/5))+ 32; return fahrenheit; } convertCtoF(30);

Continuing the discussion from freeCodeCamp Challenge Guide: Convert Celsius to Fahrenheit:

Please help me. I’m having a hard time understanding it.

1 Like

The formula for converting Celsius to Fahrenheit is °F = (°C x 1.8) + 32
So we declare the variable Fahrenheit to calculate the formula, store the answer then return it.

In which part do you having confusion?

1 Like

thanks, I’ve solved it :smiley: