Files
30-seconds-of-code/snippets/js/s/fahrenheit-to-celsius.md
2023-05-07 16:07:29 +03:00

363 B

title, type, language, tags, unlisted, cover, dateModified
title type language tags unlisted cover dateModified
Fahrenheit to Celsius snippet javascript
math
true last-light 2021-01-04T13:04:15+02:00

Converts Fahrenheit to Celsius.

  • Follow the conversion formula C = (F - 32) * 5 / 9.
const fahrenheitToCelsius = degrees => (degrees - 32) * 5 / 9;
fahrenheitToCelsius(32); // 0