JSFiddle - React, Tailwind, and code Playground
JavaScript
function newObj(){
this.v1 = 10;
this.v2 = 20;
this.func1 = function() { alert("func1"); };
this.func2 = function() { alert("func2"); };
this.func1();
this.func2();
}
var temp = new newObj();