{{theTime}}

Search This Blog

Total Pageviews

Java script to convert to Celsius

<!DOCTYPE html>
<html>
<body>

<h2>Learn JavaScript </h2>

<p>Convert To Celsius: c = (f-32)*(5/9)

95 Celsius=
</p>
<p id="result"></p>

<script>
function converttoCelsius(f) {
return (5/9) * (f-32);
}
document.getElementById("result").innerHTML = converttoCelsius(95);
</script>

</body>
</html>

No comments:

You are currently using plaintext http to connect.

Npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation must use TLS 1.2 or higher. S...