JSFiddle - React, Tailwind, and code Playground
by rbrousla
HTML
<!doctype HTML>
<html>
<head>
<meta charset="UTF-8"/>
<title> Roll a single die</title>
</head>
<body>
<p id="message"></p>
</body>
</html>
JavaScript
document.getElementById("message").innerHTML = "You rolled a " + (1 + Math.floor(6 * Math.random())) + ".";