Created
February 18, 2023 09:18
-
-
Save schesnowitz/a5edf6e264677467f0284cd75a99f06f to your computer and use it in GitHub Desktop.
FToC.js
This file contains hidden or 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
// f = (0 - 32) * 5 / 9 | |
// console.log(f) | |
const getCelsius = (temp) => { | |
celsius = (temp - 32) * 5 / 9; | |
return celsius | |
}; | |
console.log(`The temperature is ${getCelsius(10)} \xB0C`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment