JSFiddle - React, Tailwind, and code Playground

by Chase Wilson

JavaScript

var space = {};
(function($) {
    (this.Something = function(name) {
        this.name = name || 'Someone';
    }).prototype = {
        hello: function(localName) {
            alert('Hello ' + (localName || this.name));
        }
    }
}).apply(space, [jQuery]);

var something = new space.Something('chase');
something.hello();