Javascript – How to dynamically patch a prototypal class method without the usage of the super keyword?
class bcomp { some(){ console.log("bcomp"); } } class acomp extends bcomp { some(){ super.some(); console.log("acomp"); } } var ins = new acomp(); ins.some() so output will be bcomp acomp I need to override some method of acomp with super keyword…