JSFiddle - React, Tailwind, and code Playground
by I Sang Hyeon
HTML
<input type="button" id="cmdTest" value="check it"/>
<p> nothing yet !!<br/></p>
<div> fact </div>
JavaScript
$(document).ready(function(){
$('#cmdTest').click(function(){
callthis('first',1);
callthis(',',' ','');
callthis('second',1,3);
});
});
function callthis(a,b,c,d){
alert(c);
$('p').append(a+b+c);
if(c !== undefined)
$('p').css('color','red');
if(d){
$('div').append(d);
}
}