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
How to scroll page to 1000px from top on page load using jQuery?
Using jQuery add new table row on click
JavaScript sort multi dimensional array on specific columns
JavaScript simple alert on Click
How to declare and print value of variable in JavaScript?
Check if a string ends with the given target string