JSFiddle - React, Tailwind, and code Playground

by Ming Huang

JavaScript

const person = {
  gender: "male",
  age: 33,
  talk: function(){
    console.log(`this is me: ${this.gender}`);
   	let innerTalk=()=>{
    	console.log(this.gender)
    }
    innerTalk();
  }
}

person.talk();