`ForEach` only returns undefined and `map` and `reduce` do not work on this problem. How to make code work?! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

`ForEach` only returns undefined and `map` and `reduce` do not work on this problem. How to make code work?!

My code needs to increase the elements in the salary by percent, calculate the accumulated salary in the funtion and return the total accumulated percents using the forEach Method in node js. https://code.sololearn.com/cp0F1jRsDnzc/?ref=app

3rd Feb 2021, 9:01 AM
Emmanuel Riano
Emmanuel Riano - avatar
1 Answer
+ 3
Please delete this thread, you had accidentally created two copies.
3rd Feb 2021, 9:27 AM
Ipang