Answers for "celsius to fahrenheit and fahrenheit to celsius in same function javascript"

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 "celsius to fahrenheit and fahrenheit to celsius in same function javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language