Sum by reduce function in javascript
[1, 2, 3, 4].reduce((a, b) => a + b, 0)
//return 10
๐
โค๏ธ
๐
๐
๐ฎ
๐ฅ
๐ก
