Convert Celsius temperature to Fahrenheit in JavaScript

Published on October 20th, 2019

javascript icon

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.

// output: 59