Created
October 22, 2022 19:53
-
-
Save oguzhancvdr/493ea0bd9a76aacb727724da1b20d5df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fahrenheitToCelsius = (fahrenheit) => (fahrenheit - 32) * 5/9; | |
fahrenheitToCelsius(50); | |
// 10 | |
const celsiusToFahrenheit = (celsius) => celsius * 9/5 + 32; | |
celsiusToFahrenheit(100) | |
// 212 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Convert Fahrenheit to Celsius and vice versa