JSFiddle - React, Tailwind, and code Playground

by Evgeniy Kvasyuk

JavaScript

const a = {
  a: 5,
  b(){
    return this.a;
  },
  c: () => this.a,
  d(){
    const d = () => this.a;
    return d();
  }
};

console.log(a.b());
console.log(a.c());
console.log(a.d());