1const celsiusToFahrenheit = celsius => celsius * 9/5 + 32;
2
3const fahrenheitToCelsius = fahrenheit => (fahrenheit - 32) * 5/9;
4
5// Examples
6celsiusToFahrenheit(15); // 59
7fahrenheitToCelsius(59); // 15
1<!DOCTYPE html>
2<html>
3<head>
4 <title>Fahrenheit From Celsius</title>
5</head>
6<body>
7 <script>
8 var cTemp = 100; // temperature in Celsius
9 // Let's be generous with parentheses
10 var hTemp = ((cTemp * 9) /5 ) + 32;
11 document.write("Temperature in Celsius: " + cTemp + " degrees<br/>");
12 document.write("Temperature in Fahrenheit: " + hTemp + " degrees");
13 </script>
14</body>
15</html>