In JavaScript, you can use functions the same way as you use variables. You can use:
var text = "The temperature is " + toCelsius(77) + " Celsius";
Instead of:
var x = toCelsius(32);
var text = "The temperature is " + x + " Celsius";