The Formula
Convert between them.
The Magic Formula! ✨
Now we learn the secret math to turn Celsius into Fahrenheit and back! ✨🌡️
console.log('Time for the temperature formula! ✨')Celsius to Fahrenheit 🔥
The formula is: F = C * 9 / 5 + 32. Let's try it with 0 Celsius! 🔥
let celsius = 0
let fahrenheit = celsius * 9 / 5 + 32
console.log(celsius, 'C is', fahrenheit, 'F')