JSFiddle - React, Tailwind, and code Playground

JavaScript

function Foo() {
    this.DoStuff();
}

Foo.prototype.DoStuff = function() {
    alert("I'm frantically doing stuff!");
};
 
Foo();