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?
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}) => (max+min) / 2.0; 
document.write(half)
 
    