title: Average 2 hex colors together in javascript
body: <p>Alright thought I would throw this one out there for the crowd to think over.</p>
  <p>Given a <strong>function</strong> <em>(written in javascript)</em> that expects two strings formated like a hex color (<strong>ex #FF0000</strong>)</p>
  <p>return a hex color that is the average of both of the colors passed.</p>
  <pre><code>function averageColors(firstColor,secondColor)
  {
    ...
    return avgColor;
  }
  </code></pre>
  <p><em>--edit--</em></p>
  <p>average would be defined as <img src="https://i.stack.imgur.com/YZfG2.jpg" alt="enter image description here" /></p>
  <p><strong>if the color passed was yellow and the second was light purple the returned color would be a medium orange</strong></p>