title: How do I use my object property inside a function of a method that belongs to the same object?
body: <p>I have an object that has a method. Inside that method is a function, I want to use my object property inside the function of my method.</p>
  <p>this is what I'm doing right now:</p>
  <pre><code>const obj ={
  
   property: 5,
  
   method(){
     //deconstructing this obj
     const {property} = this;
  
     // a function inside a method
     const func1 = () =&gt;{
        console.log(property + 5);
     }
   }
  
  }
  
  
  </code></pre>
  <p>I destructured the obj inside its method because I don't want to keep on doing <code>this.property</code> or <code>obj.property</code> when I'm using my obj property inside the function of my method. Is this bad and is there a better way to do this?</p>