9.
Given the following JavaScript function to convert Fahrenheit to Celsius:
function convertFahrenheitToCelsius(fahrenheit) {
return (fahrenheit - 32) * 5 / 9;
}
What is the output of convertFahrenheitToCelsius(32)?
100
68
0
16
Correct: C
The function convertFahrenheitToCelsius takes a temperature in Fahrenheit as an argument and converts it to Celsius using the formula C = (F - 32) * 5/9. Therefore, when convertFahrenheitToCelsius(32) is called, the output will be 0.