JSFiddle - React, Tailwind, and code Playground

by cmruser

HTML

<input type="button" value="checkbox" onclick="JQUERY4U.addCheckbox();" />
<input type="button" value="input" onclick="JQUERY4U.addInput();" />

JavaScript

JQUERY4U = {    
    addCheckbox: function(){alert("checkbox")},
    addInput: function(){alert("input")}
}

var multiply = function(x,y) {
     return (x * y);
}(2,2);

alert(multiply);

jQuery.fn.extend({
    checkbox: function () {
        alert('c');
    },
    input: function() {
        alert('i');   
    }
});