Obsessed with React and teaching. I help people become Frontend Developers. Living with my fiancee and Yorkshire Terrier 🐶 in Poland.
Use the versatile .reduce method to sum an array of numbers.
Sum those numbers
- It can reduce numbers to sum them up or calculate the average number for example.
- It also works great with other data structures such as arrays of strings or arrays of objects.
THE GUIDE TO BEAT FRONTEND INTERVIEW
Let's build a community that will help each other.