I have no idea at ll what to write or where

Tell us what’s happening:

I don’t understand this at all

Your code so far

function convertToF(celsius) {
  var fahrenheit;
  // Only change code below this line
  
  
  // 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 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36.

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

The function is meant to convert a temperature in Celsius to Fahrenheit. The instructions describe the math:

The algorithm to convert from Celsius to Fahrenheit is the temperature in Celsius times 9/5, plus 32

Your job is to take the number celsius, do the math on it that will transform it to Fahrenheit, then store that number in the variable fahrenheit. Your code will be in between the two comments.

1 Like