Example
<!DOCTYPE html>
<html>
<head>
<title>Fahrenheit From Celsius</title>
</head>
<body>
<script>
var cTemp = 100; // temperature in Celsius
// Let's be generous with parentheses
var hTemp = ((cTemp * 9) /5 ) + 32;
document.write("Temperature in Celsius: " + cTemp + " degrees<br/>");
document.write("Temperature in Fahrenheit: " + hTemp + " degrees");
</script>
</body>
</html>
Most Helpful This Week
JavaScript sort multi dimensional array on specific columns
jQuery move multi select values from one to another multi select list
JavaScript example to change image on click
JavaScript check if first string contains all characters of second string
Highlight and get the details of table row on click using JavaScript
How to change text after click event using JavaScript?