Reduce Example

PHOTO EMBED

Sun Dec 27 2020 13:17:38 GMT+0000 (Coordinated Universal Time)

Saved by @ilyasDh #javascript

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

https://jsfiddle.net/bradtraversy/e5rb0x0a/