exemplos reduce js code example Example: js reduce Sum array elements: let myArr = [1,2,3,-1,-34,0] return myArr.reduce((a,b) => a + b,0)