JSFiddle - React, Tailwind, and code Playground

by hrebejk

JavaScript

class X {
    static get brr() { return "BRRR"; }
	  
    constructor( a ) {
      this.a = a + X.brr;
    } 
};

class Y extends X {

	

}


x = new X("a");
console.log(x.a);
console.log(X.brr);
console.log(new Y("b").a);