JSFiddle - React, Tailwind, and code Playground

by Chris Dennis

JavaScript

class foo {
	constructor () {
  }
  bar (x) {
  	console.log('bar x:', x);
  }
}

class morefoo extends foo {
	constructor () {
  	super();
  }
  bar () {
    let super_bar = super.bar.bind(this);
  	setTimeout(function () {
      //super.bar(r); // => 'super' keyword unexpected here
    	super_bar(r);
    }, 0); 
  }
}

let f = new morefoo;
f.bar();