Basic Algorithm Scripting - Convert Celsius to Fahrenheit

Can somebody tell me what is wrong with this?
It checks right in all the tests of the challenge but it does not solve it.
If it’s something obvious please just tell me. I’ve been here long enough.

function convertToF(celsius) {
  let fahrenheit = celsius * (9/5) + 32;
  return fahrenheit;
}

convertToF(30);
console.log(convertToF(0))

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36

Challenge: {{challengeTitle}} Basic Algorithm Scripting - Convert Celsius to Fahrenheit

Link to the challenge:

You change the name of the function
you were asked to write a function named convertCtoF

Thank you so much. It sure was really obvious.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.