DEV Community

Discussion on: What is Map, Reduce, and Filter in JavaScript?

Collapse
 
whyafan profile image
Afan Khan

Oh, thanks for letting me know. If the default value is 0, then I would definitely not mention it fequently. I believe it is still important for me to add that for beginners to know the initial value of the accumulator :)

Collapse
 
jonrandy profile image
Jon Randy 🎖️

The default value isn't 0