<html>
<body>
<h1>JavaScript Functions</h1>
<p>Accessing a function without () returns the function and not the function result:</p>
<p id="demo"></p>
<script>
function toCelsius(f) {
return (5 / 9) * (f - 32);
}
let value = toCelsius;
document.getElementById("demo").innerHTML = value;
</script>
</body>
<!-- /js/tryit.asp?filename=tryjs_farenheit_to_celsius_2 Thu, 06 Feb 2025 18:15:24 GMT -->
</html>