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