JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" id="myButton" value="Click Me">

JavaScript

$("input").on("click", function() {
    var output = 1;
   if(confirm("You really??"))
      {
      output=0;
      }
              
      alert(output);
});