Need help converting celsius to fahrenheit! (SOLVED)

I just copied your code and pasted and got it right thanks but it didn’t made any sense yet ill be relearning again I am going follow you would be great help

Be sure to check your spelling. You probably had the code right at first, but you could have easily spelled fahrenheit wrong and put “farenheit” like I did. Anyways, this is just a suggestion based off my previous experience

Well done @ChadKreutzer. Thank you very much for your help! :slight_smile:

My solution:

var fahrenheitToCelsius = function(num){
var result = parseFloat(((num - 32 )/(1.8)).toFixed(1));

return result;

}

var celsiusToFahrenheit = function(num){
var result = parseFloat((num *1.8 + 32).toFixed(1));

return result;

}

Formula = F = C x 1.8 + 32
*

    1. Set the fahrenheit variable to the correct value using the celsius variable and the forumla above
    1. Log the fahrenheit variable to the console

*/

var celsius = 12;
var fahrenheit = celsius * 1.8 + 32;/* convert celsius to fahrenheit here */

console.log(fahrenheit/* print out result here */);

thank you, so much i’ve literally been stuck for like ever and yours is the only one that actually worked!!