How to sum items of array in JavaScript

Arrays
Last updated Dec 19, 2017
const calories = [50, 100, 200];

//sum
calories.reduce((a, b) => a + b, 0);
350