JSFiddle - React, Tailwind, and code Playground
by MartijnR
JavaScript
function Data(id) {
this.obj.init();
}
Data.prototype.dothis = function() {
document.write('doing this');
}
Data.prototype.obj = {
t: this,
init: function() {
this.dothat();
},
dothat: function() {
document.write('yo');
document.write(this.t.dothis());
}
}
d = new Data();