JSFiddle - React, Tailwind, and code Playground
JavaScript
'use strict';
class Classe {
constructor() {
const logA = () => {
console.log('logA', this);
};
const logB = function() {
console.log('logB', this);
}
logA();
logB();
}
}
const logC = () => {
console.log('logC', this);
};
const logD = function() {
console.log('logD', this);
}
new Classe();
logC();
logD();