Skip to content

Conversation

cvazquez08
Copy link

Lab solutions

for(let i = 0; i < nums.length; i++)
counter += nums[i];
console.log(counter);
}
Copy link

@ta-web-mia ta-web-mia Nov 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that you didn't return something with some other functions as well. I'd recommend to return something with most functions. Though not all functions necessarily should return something, it's good practice to do for the most part, especially when you have a function so specific as sumArray() where you'd return the sum

-Francisco :)

@ta-web-mia ta-web-mia closed this Nov 6, 2018
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.

2 participants