JSFiddle - React, Tailwind, and code Playground
JavaScript
var a = function(n,a,s) {
this.name = n;
this.age = a;
this.state = s;
this.p = function() {
console.log( this.name + ',' + this.age + ',' + this.state);
}
}
var p1 = new a("antonija", 26, "cro")
p1.p();