Answers for "javascript program to convert temperatures to and from celsius fahrenheit"

4

javascript celcius to farenheit

const celsiusToFahrenheit = celsius => celsius * 9/5 + 32;

const fahrenheitToCelsius = fahrenheit => (fahrenheit - 32) * 5/9;

// Examples
celsiusToFahrenheit(15);    // 59
fahrenheitToCelsius(59);    // 15
Posted by: Guest on July-03-2020

Code answers related to "javascript program to convert temperatures to and from celsius fahrenheit"

Code answers related to "Javascript"

Browse Popular Code Answers by Language