Convert Celsius to Fahrenheit dont work

Tell us what’s happening:

Your code so far

function convertToF(celsius) {
  // Only change code below this line

   var fahrenheit = (celcius * (9/5)) + 32;
  // Only change code above this line
  return fahrenheit;


// Change the inputs below to test your code

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0.

Link to the challenge:

You have a typo in your formula.

Check your spelling.


Hi there!
Is there someone to give me some light on this multiple temperature conversions issue that do not work at once? I will appreciate your response.

@Javi - You need to use a formula to convert from Celsius to Fahrenheit. You need to assign the formula to the variable called fahrenheit. You are so close to the solution. Instead of putting a number into the formula, use the variable called celsius.

1 Like

Great! Thanks to your directions I have gotten the challenge.

1 Like