Files
30-seconds-of-code/snippets/fahrenheitToCelsius.md
2022-02-13 18:21:11 +02:00

353 B

title, tags, unlisted, firstSeen, lastUpdated
title tags unlisted firstSeen lastUpdated
Fahrenheit to Celsius 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