We definitely can. But as I said, I always get confused with the argument order of reduce and since I didn't want to Google my way through this one, I went with forEach
I used to struggle as well but with practice you will get the hang of it. Once you start using array methods you can get lot of things with as little code as possible.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
We definitely can. But as I said, I always get confused with the argument order of reduce and since I didn't want to Google my way through this one, I went with forEach
I used to struggle as well but with practice you will get the hang of it. Once you start using array methods you can get lot of things with as little code as possible.