JSFiddle - React, Tailwind, and code Playground

HTML

<button>
Click
</button>

JavaScript

$(document).ready(function(){
	function add(v1, v2) {
  	return v1 + v2 + this.v3 + this.v4;
  }
  
  function addValues() {
  	var o = {v3:1000, v4:200};
    var res = add.call(o, 30,4);
    alert(res);
  }
  
  $("button").click(function(){
        addValues();
    });
});