JSFiddle - React, Tailwind, and code Playground
JavaScript
function Foo() {
}
Foo.prototype.alert = function() {
alert(this);
};
(new Foo()).alert();
function Foo() {
}
Foo.prototype.alert = function() {
alert(this);
};
(new Foo()).alert();