JSFiddle - React, Tailwind, and code Playground
by Alex Fogarty
HTML
<button id="thebutton">Click Here</button>
JavaScript
var buttonClick=document.getElementById("thebutton");
buttonClick.addEventListener("click", ShowDateTime, false);
function ShowDateTime()
{
var dateVariable = new Date();alert(dateVariable.toString());
}