temp-conversion.js 156 B

12345
  1. let fahrenheit = -50
  2. let celsius = (fahrenheit - 32) * (5/9)
  3. console.log(celsius + 'C')
  4. let kelvin = (fahrenheit + 459.67) * (5/9)
  5. console.log(kelvin + 'K')