Files
30-seconds-of-code/snippets/celsiusToFahrenheit.md
Isabelle Viktoria Maciohsek 2b6f2b1740 Update snippet descriptions & tags
2020-10-18 23:04:45 +03:00

17 lines
256 B
Markdown

---
title: celsiusToFahrenheit
tags: math,beginner
---
Converts Celsius to Fahrenheit.
- Follows the conversion formula `F = 1.8 * C + 32`.
```js
const celsiusToFahrenheit = degrees => 1.8 * degrees + 32;
```
```js
celsiusToFahrenheit(33); // 91.4
```