open_in_new
content_copy
let result = arr.reduce((sum, current) => sum + current, 0);