open_in_new
content_copy
const ageSum = ages.reduce(function(total, age) { return total + age; }, 0);