Deviopath › JavaScript

Celsius to Fahrenheit

Easy · Math

Write a function toFahrenheit that converts a temperature from Celsius to Fahrenheit.

The formula is F = C * 9 / 5 + 32. Round the result to 1 decimal place (hint: Math.round(x * 10) / 10).

Next: Sum of an Array