JSFiddle - React, Tailwind, and code Playground

by WK_of_Angmar

HTML

<button onclick="celsiusToFahrenheit()">Click me</button>

JavaScript

function celsiusToFahrenheit() {
    var input = prompt("What is the temperature in degrees Celsius?");
    alert("That in degrees Fahrenheit is " + (input*(9/5)+32) + "!");
}