JSFiddle - React, Tailwind, and code Playground

by Praveen Kumar Purushothaman

HTML

<input type="button" id="btnclick" value="Click 3"/>

JavaScript

$('#btnclick').click(function(e, t) {
    t = (t == undefined) ? 1 : t;
    for (i = 0; i < t; i++)
        alert('3');
}).trigger('click', 3);