title: How to make a nested function call within an IIFE?
body: <pre><code>const parkReport = () =&gt; {
       return {
         averageAge: () =&gt; {
            return console.log('Something');   
        }
       } 
      };
      const initialize = ( parkReport =&gt; {
        return parkReport.averageAge();
      })(parkReport);
  </code></pre>
  
  <p>In the IIFE <code>initialize</code> <code>parkReport.averageAge()</code> is showing an error of not a function. How do you call the nested <code>AverageAge()</code> from <code>initialize</code>?</p>