Convert Celsius to Fahrenheit Challenge

This is my code,but it counted it wrong.

Your code so far

function convertToF(celsius) {
  var fahrenheit;
  // Only change code below this line
  
  
  
  Farenheit= ((celsius*9/5))+32;
  // Only change code above this line
  return fahrenheit;
}

// Change the inputs below to test your code
convertToF(30);

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (X11; CrOS x86_64 10032.75.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.116 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/convert-celsius-to-fahrenheit

Look at the spelling of your variable names. JavaScript is case-sensitive.

1 Like