odin-default-js-exercises/tempConversion/README.md

13 lines
477 B
Markdown
Raw Normal View History

2017-08-25 15:27:07 +00:00
# Exercise 06 - tempConversion
This exercise asks you to create more than one function so the module.exports section of the spec file looks a little different this time. Nothing to worry about, we're just packaging the functions into an object to be exported.
2017-08-25 15:29:32 +00:00
Write two functions that convert temperatures from Fahrenheit to Celsius (and the other way around):
```
ftoc(32) // fahrenheit to celsius, should return 0
ctof(0) // celsius to fahrenheit, should return 32
```
2017-08-25 15:27:07 +00:00