JSFiddle - React, Tailwind, and code Playground

by fenderistic

HTML

<div id=output></div>

JavaScript

function world(res){
 this.result=res;
   this.putout=function(){
     $("#output").html(this.res);   
    }
}
var obj1 = new world("hello");
obj1.putout();