odin-default-js-exercises/tempConversion
Cody Loyd 4aec9d41fd Update tempConversion.spec.js 2017-10-25 11:53:33 -05:00
..
README.md add hints to exercises 2017-10-24 15:10:20 -05:00
tempConversion.js remove numbering 2017-09-20 11:02:31 -05:00
tempConversion.spec.js Update tempConversion.spec.js 2017-10-25 11:53:33 -05:00

README.md

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.

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

hints

The math here is fairly straightforward.. just google the formula and implement it in the code