JSFiddle - React, Tailwind, and code Playground

by Brenton Strine

HTML

<button type="button" id="paper">Paper</button>

JavaScript

var rockButton = document.getElementById("paper");

rockButton.addEventListener("click", function() {
   var now = new Date();
   now = now.toTimeString();
	 console.log("you clicked at exactly " + now);
});