Files
30-seconds-of-code/snippets/fahrenheitToCelsius.md
Isabelle Viktoria Maciohsek 0ba944aa66 Consistent wording
2020-11-01 20:50:57 +02:00

17 lines
258 B
Markdown

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