JSFiddle - React, Tailwind, and code Playground
JavaScript
function DoWork(a,b) {
this.a = a;
this.b = b;
return [a,b];
}
function DoingWork(x,y,z) {
this.x = x;
this.y = y;
this.z = z;
return [x,y,z];
}
var b = DoingWork(8,9, new DoWork(1,2));
console.log(b);
console.log(b.a);