Explain the JavaScript object with various methods and access its 'a' property.

by saidulu401

JavaScript

const obj = {
  a: this,
  b: function(){
    console.log(this,' in b')
    return this;
  },
  c: ()=>{
    console.log(this,' in c')
    return this;
  },
  d(){
    console.log(this,' in d')
    return this;
  }, 
  e: function(){
    console.log(this,' in e')
    return this.a;
  }
}
obj.d()