JSFiddle - React, Tailwind, and code Playground

HTML

<pre></pre>

JavaScript

var classA = function(){
    this.something = "Text";
};

classA.prototype.b = " b ";
classA.c = "c";
classA.prototype.d = function(x) { 
    $("pre").html(
            $("pre").html() +
            x
    );
};
classA.e = function(x){
    $("pre").html(
            $("pre").html() +
            x
    );
};

var a = new classA();

$("pre").html( a.something +
               "\nb: " + a.b +
               "\nc: " + classA.c
              );

a.d("\nd: D")
classA.e("\ne: E");