JSFiddle - React, Tailwind, and code Playground

by chiragvidani

HTML

<input type="button" id="btnShow" value="Show" />

JavaScript

jQuery.extend({
  add: function(s2) {
  	alert(this);
  }
});

$(document).ready(function(){
	$('#btnShow').click(function(){
        var s = "Chirag";
    	s.add();
    });
});