JSFiddle - React, Tailwind, and code Playground

by btipling

JavaScript

var Foo = {
    doSomething: function () {
        Foo.anotherThing();
    },
    anotherThing: function () {
        alert("it worked.");
    }
};
Foo.doSomething();