Javascript for beginners — Understanding the reduce function.

Photo by Christopher Gower on Unsplash

Working as a frontend developer, you will eventually stumble upon the reduce function. A built in method that is executing a reducer function on each element of an array which will result in 1 single output value.

The name Reducer can be a confusing word to begin with. We can’t at first sight associate the name to a real world example like for example the…