Skip to main content

Practice ยท 2 of 3

Temperature Converter

Write a function celsiusToFahrenheit(c) that RETURNS the Fahrenheit equivalent โ€” the formula is c * 9/5 + 32. Then log celsiusToFahrenheit(0) (should print 32) and celsiusToFahrenheit(100) (should print 212).

Difficulty: beginner

Back to lesson: Practice: Functions: Reusable Code โ€” Practice