title: Calling an array of a different function that belongs to the same javascript class
body: <p>Hi guys I'm a newbie in JS and I'd like to know how to call an array of a different class inside another function that belongs to the same javascript class.
  Here is the sample code:</p>
  
  <pre><code>class Something {
  
    constructor () {}
  
    async functionA () {
         this.list = []
    }
  
    async functionB () {
         console.log(this.list)
    }
  
  }
  </code></pre>