JSFiddle - React, Tailwind, and code Playground

by Samar Pattanayak

JavaScript

//Lexical scope and arroy function
var block = {
  name: 'john',
  hello: function() {
    	return {
        say: ()=>{
        	console.log(this.name);
        }
      }
    }
  }

block.hello().say();