JSFiddle - React, Tailwind, and code Playground
JavaScript
//Lexical scope and arroy function
var block = {
name: 'john',
hello: function() {
return {
say: ()=>{
console.log(this.name);
}
}
}
}
block.hello().say();