JSFiddle - React, Tailwind, and code Playground

by gschutz

JavaScript

var Command = (function(){
    var name = "uno";
    var go = "ouo";
    var treta = function() {
        name = "duos";
        return this;
    };
    
    function() {
        this.area = area;
        this.grow = grow;
        this.shrink = shrink;
        return this;
    };
})();

var select = function(){
    this.execute = function() {
        return "selected";
    }
};
Command.apply(select.prototype)

console.log(new select(), new Command());

console.log(select instanceof Command)