JSFiddle - React, Tailwind, and code Playground
by alnitak
JavaScript
base = function () {
this.A = function () {
this.B();
}
this.C = function () {
alert('I am C');
}
}
sub = function () {
this.B = function () {
this.C();
}
}
sub.prototype = new base();
(new sub()).A();