JSFiddle - React, Tailwind, and code Playground JavaScript a = 2; function XY(a) { this.a = a; } var xy = new XY(1); console.log(xy.a);