JSFiddle - React, Tailwind, and code Playground

by Julien Etienne

JavaScript

const app = {
  a(){
  	console.log(this)
    return this
  },
  b(){
  	console.log(this)
    return this
  },
  c(){
  	console.log(this)
    function d (x,y,z){
    	console.log('d', this, x,y,z)
      console.log('show me e', this.e)
    }
    d.call(app)
    return this;
  },
  e: this.call(this)
}

console.log(Object.keys(app.a()).length)
console.log(Object.keys(app.c()).length)