<html>
<body>
<h1>JavaScript Statements</h1>
<h2>The function Statement</h2>
<p>You can a function many times with different arguments, to produce different results.</p>
<p>Convert from Fahrenheit to Celcius. Change toCelcius(32):</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = toCelcius(32);
function toCelcius(f) {
return (5/9) * (f-32);
}
</script>
</body>
</html>