Thanks, for your comment I intentionally use the same example for both map and forEach to just not confuse folks. But, if you read my final thought, you'll see that map is all about transforming data, and this example should be done with map.
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.
Thanks, for your comment I intentionally use the same example for both
map
andforEach
to just not confuse folks. But, if you read my final thought, you'll see thatmap
is all about transforming data, and this example should be done withmap
.