title: Console.log from a class' function
body: <p>I want to test if my function inside my class returns the given sentence. But if I try to test using <code>console.log</code>, it returns <code>ReferenceError: rev is not defined</code>. What am I doing wrong?</p>
  <pre><code>class store {
      constructor(revenue, workers) {
          this.revenue = revenue;
          this.workers = workers;
      }
  }
  
  class storeManager extends store {
      constructor(name) {
          super(revenue, workers);
          this.name = name;
      }
  
      rev() {
          return &quot;The stores revenue is&quot; + this.revenue;
      }
    
      hiredWorkers() {
          return &quot;The store has&quot; + this.revenue + &quot;workers&quot;;
      }
  };
  
  console.log(rev())
  </code></pre>
  <p>I'm a fairly new programmer, so bear with me if this is a stupid question.</p>