JSFiddle - React, Tailwind, and code Playground

by Md. Atiquzzaman Soikat

HTML

<button type="button"> Clicca qui </button>

JavaScript

var button = document.querySelector('button');
button.onclick = casuali;
function casuali(){
var a,b;
var a = Math.floor(Math.random() * 6) + 1;
var b = Math.floor(Math.random() * 6) + 1;
if (a === b) {
alert("Equals")
} else { 
alert("Not Equals")
}
}