JSFiddle - React, Tailwind, and code Playground

by toby3105

JavaScript

var S = (function() {
    var self = this;
    self._enabled = false;
    
    this.initialize = function() {
        self._doit();
    };

    this._doit = function() {
        self._enabled = true;
        console.log("test");
    };

    // Exporting
    return {
        Initialize: this.initialize
    };
})();
S.Initialize();