Files
30-seconds-of-code/snippets/fahrenheitToCelsius.md
Isabelle Viktoria Maciohsek 27c168ce55 Bake date into snippets
2021-06-13 13:55:00 +03:00

349 B

title, tags, unlisted, firstSeen, lastUpdated
title tags unlisted firstSeen lastUpdated
fahrenheitToCelsius math,beginner true 2020-04-16T11:00:06+03:00 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