Files
30-seconds-of-code/snippets_archive/celsiusToFahrenheit.md
Angelos Chalaris 611729214a Snippet format update
To match the starter (for the migration)
2019-08-13 10:29:12 +03:00

16 lines
264 B
Markdown

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