How to sum items of array in JavaScript

Arrays
By Jad Joubran · 
Last updated Jan 23, 2018
const calories = [50, 100, 200];

//sum
calories.reduce((total, current) => total + current, 0);
350
Array.reduce on MDN