18 lines
273 B
Markdown
18 lines
273 B
Markdown
---
|
|
title: fahrenheitToCelsius
|
|
tags: math,beginner
|
|
unlisted: true
|
|
---
|
|
|
|
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
|
|
```
|