JSFiddle - React, Tailwind, and code Playground

JavaScript

var A = function() {
  this.test1 = '1';
};
Object.defineProperty(A.prototype, 'test2', { value: '2', enumerable: true });
document.body.innerText = JSON.stringify(new A());