JSFiddle - React, Tailwind, and code Playground

JavaScript

class M {
	constructor() {
  	this.prop = 0;
    this.inc();
  }
  inc() {
  	return this.prop++;
  }
  static sample() {}
  static func() {
  	console.log('this === M', this === M);
    console.log(M.sample.name)
  }
}

var m = new M();
console.log('prop has incremented and equal 1', m)
M.func()

var alien = {};
console.log('\nanother this');
M.func.call(alien)