JSFiddle - React, Tailwind, and code Playground
JavaScript
var a = new Class({
a:function(){
alert(1);
}
})
, b = a.prototype.a;
a.prototype.a = function(){alert(2);};
a.prototype.b = b;
(new a).b();
var a = new Class({
a:function(){
alert(1);
}
})
, b = a.prototype.a;
a.prototype.a = function(){alert(2);};
a.prototype.b = b;
(new a).b();