21 lines
337 B
Markdown
21 lines
337 B
Markdown
---
|
|
title: Celsius to Fahrenheit
|
|
type: snippet
|
|
tags: [math]
|
|
unlisted: true
|
|
cover: last-light
|
|
dateModified: 2021-01-04T13:04:15+02:00
|
|
---
|
|
|
|
Converts Celsius to Fahrenheit.
|
|
|
|
- Follow the conversion formula `F = 1.8 * C + 32`.
|
|
|
|
```js
|
|
const celsiusToFahrenheit = degrees => 1.8 * degrees + 32;
|
|
```
|
|
|
|
```js
|
|
celsiusToFahrenheit(33); // 91.4
|
|
```
|