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 simple alert on Click
JavaScript convert string variable in boolean using Regex
Using jQuery add new table row on click
jQuery simple form validations between start date and end date
Using jQuery delete table row on click
How can I redirect the user from one page to another using jQuery or pure JavaScript?