JSFiddle - React, Tailwind, and code Playground

by Arnaud Buchholz

JavaScript

class A {
  static method () {
    console.log(this.message())
  }
  
  static message() { return 'a' }
}

class B extends A {
  static message() { return 'b' }
}

B.method()