{{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:

Generate Insert Sql from Select Statement

SELECT 'INSERT INTO ReferenceTable (ID, Name) VALUES (' +        CAST(ID AS NVARCHAR) + ', ''' + Name + ''...