JSFiddle - React, Tailwind, and code Playground
JavaScript
new Bla().start();
function Bla(){
this.start = function(){
alert("starting");
x(this);
}
this.done = function(){
alert("done");
try{
this.postDone();
}
catch(e){
alert(e);
}
}
this.postDone = function(){
alert("postdone");
}
}
function x(callbackServer){
alert("x");
try{
callbackServer.done();
}
catch(e){
alert(e);
}
}