Tell us what’s happening:
Your code so far
function convertToF(celsius) {
var fahrenheit;
// Only change code below this line
celsius *= 9/5 ;
celsius + 32;
// Only change code above this line
return fahrenheit;
}
// Change the inputs below to test your code
convertToF(22);
Solution:
function convertToF(celsius) {
var fahrenheit;
// Only change code below this line
fahrenheit = (celsius * (9/5)) + 32;
// Only change code above this line
return fahrenheit;
}
// Change the inputs below to test your code
convertToF(22);
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
.
Link to the challenge:
https://www.freecodecamp.org/challenges/convert-celsius-to-fahrenheit