Skip to content

Conversation

@Zyash
Copy link

@Zyash Zyash commented Jun 20, 2022

sum variable was never used in this 'forEach' function that is why it never got updated, which means output should be 1,2,3,4,5,0. However, There is no necessary to use sum variable in it to understand the 'forEach' function.

I hope it is helpful.
Thank You

sum variable was never used in this 'forEach' Callback function that is why it never got updated, which means output should be 1,2,3,4,5,0. However, There is no necessary to use sum variable in it to understand the 'forEach' callback function.

I hope it is helpful.
Thank You
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants