title: How to console log the answer instead of whole function (Javascript, ES6)
body: <p>I'm working on some ES6 code, and I want to console.log or document.write the answer to my function. When I attempt to do this, it writes the entire function instead. Is there an easy way to do this?</p>
  <pre><code>const stats = {
    max: 56.78,
    standard_deviation: 4.34,
    median: 34.54,
    mode: 23.87,
    min: -0.75,
    average: 35.85
  };
  
  const half = ({max, min}) =&gt; (max+min) / 2.0; 
  
  document.write(half)
  </code></pre>