JSFiddle - React, Tailwind, and code Playground
JavaScript
var Utente = function(name){
this = Loggable(this);
this.name = name;
}
var Loggable = function(proto){
var fn2 = new Function();
fn2.logThis = function(){
// bla bla..
};
fn2.prototype = proto;
return fn2;
}
Utente.prototype.getFullName = function(){
console.log(this.name);
};
console.log(new Utente('a'));