JSFiddle - React, Tailwind, and code Playground
JavaScript
function d(){
this.b = this.a = function() {console.log("called a!");};
}
c = new d();
c.a();
c.b();
function d(){
this.b = this.a = function() {console.log("called a!");};
}
c = new d();
c.a();
c.b();