Files
30-seconds-of-code/snippets/fahrenheitToCelsius.md
Isabelle Viktoria Maciohsek 5e8e6f51a3 Update snippet descriptions
2020-10-19 18:51:03 +03:00

17 lines
259 B
Markdown

---
title: fahrenheitToCelsius
tags: math,beginner
---
Converts Fahrenheit to Celsius.
- Follows the conversion formula `C = (F - 32) * 5/9`.
```js
const fahrenheitToCelsius = degrees => (degrees - 32) * 5 / 9;
```
```js
fahrenheitToCelsius(32); // 0
```