Understanding Basics of Reduce in JavaScript
What we will cover:
Note: This article is updated with corrections about truthy and falsy values
In the previous article, we read about map, filter and find functions, in this article, we will first see how reduce works with a simple example and then...