JSFiddle - React, Tailwind, and code Playground
by Tim Morgan
HTML
<h1>Heyo Boyo</h1>
<div id="info" class="result">I will magically disappear and give you numbers</div>
CSS
h1{
font-size:15px;
color:#00f;
text-decoration: underline;
-webkit-transition-duration: 0.2s;
}
JavaScript
var a = prompt("Enter a number");
var b = prompt("Enter another number");
function add(a,b) {
return a + b;
}
document.querySelector(".result").textContent = (add(+a,+b));