Accessing a function without () will return the function definition instead of the function result:

function toCelsius(fahrenheit) {
    return (5/9) * (fahrenheit-32);
}
document.getElementById("demo").innerHTML = toCelsius;  // function toCelsius(f) { return (5/9) * (f-32); }

Yonggoo Noh

I am interested in Computer science and Mathematics.