JSFiddle - React, Tailwind, and code Playground
by Viet27th
JavaScript
function myClass() {
console.log('First: ', 'Xaun Deiu');
let student = "Anh thợ sửa ống nước";
this.teacher = 'Cô giáo Thảo';
this.temp = function() {
console.log('Third: ', this);
console.log('Fourth: ', this.teacher);
console.log('Fifth: ', student);
return () => {
console.log('Sixth: ', this);
return () => {
console.log(7, this);
}
};
}
return console.log('Second: ', this);
}
let d = new myClass();
let v = d.temp();
let g = v();
g();