JSFiddle - React, Tailwind, and code Playground

JavaScript

(function( window, document, undefined ) {
    
    var myThingy = function() {
    };
    
    myThingy.prototype = {
        constructor: myThingy,
        create: function( elementToBeCreated ) {
            return document.createElement( elementToBeCreated );
        }

    };
    
    window.myThingy = new myThingy();
    
})( window, document );
console.log(myThingy.create("div"));