Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

imrebartis
Copy link

No description provided.

words.forEach(function(word){
sum = sum + word.length;
})
var average = sum/words.length;
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't have to declare a new var. You can just return sum/words.length

var maxProduct = greatestProduct(matrix);
console.log(maxProduct);
console.log(maxProduct);
Copy link
Contributor

Choose a reason for hiding this comment

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

#checked-well done

@imrebartis
Copy link
Author

imrebartis commented Apr 5, 2017 via email

@tawebbcn tawebbcn closed this Aug 17, 2017
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