JSFiddle - React, Tailwind, and code Playground
JavaScript
const F = function () {};
const obj = new F();
obj.prototype.hi = function () { return 'hi'};
const objNew = new F();
objNew.hi(); // ?
const F = function () {};
const obj = new F();
obj.prototype.hi = function () { return 'hi'};
const objNew = new F();
objNew.hi(); // ?