JSFiddle - React, Tailwind, and code Playground
by nfreitas
JavaScript
var fahrenheit = 85;
var toCelsius = function(fahrenheit) {
var celsius = (fahrenheit - 32) * 5 / 9;
return Math.round(celsius);
};
// Notice the closing semi-colon which is required for an Expression.
document.write(fahrenheit + "° converted to Celsius is " + toCelsius(fahrenheit) + "°");