Convert Celsius temperature to Fahrenheit

Last update in 10/2019

This is very simple JavaScript function you can use to convert Celsius temperature to Fahrenheit. It accepts Celsius temperature parameter as a number and returns Fahrenheit temperature, also, as a number.

const celsiusToFahrenheit = celsius => {
return (celsius * 9) / 5 + 32
}

And here is result of this example.

celsiusToFahrenheit(15)
// output: 59