JSFiddle - React, Tailwind, and code Playground

by ariehg

JavaScript

var Cls = new Class({
    a : null
    , initialize : function(a){this.a = a;}
    , log : function(){console.log(this.a);}
    , ajax : function(){
        var $this = this;
        var req = new Request({
            url : '/echo/json/'
            , onComplete : function(){$this.log();}
        }).send();
    }
});
        var cls = new Cls('a');
        cls.ajax();