0Pricing
Javascript for Kids · Lesson

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')

All lessons in this course

  1. Two Temperature Scales
  2. The Formula
  3. Asking the User
  4. Showing the Result
← Back to Javascript for Kids