title: Easily add an array of values in Javascript (eg. without loops)
body: <p>I was wondering if anyone knows of a nice way of adding an array of values in javascript?</p>
  
  <p>I came up with:</p>
  
  <pre><code>var myArray = [1,2,3,4,5];
  
  var total = eval(myArray.join("+"));
  </code></pre>
  
  <p>Which is nice and short, but I'm guessing going from num to string and then evaling to get back to a number is a slow way of getting the total.</p>