Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carina Taveras #102

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Carina Taveras #102

wants to merge 3 commits into from

Conversation

tCarina
Copy link

@tCarina tCarina commented Jan 24, 2021

No description provided.

sum += appleCountByName[key];
}
return sum;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice job!


/**
* Takes in an array and returns the most common element.
* @param {Array} array - array of elements
* @returns {(number|string)} Most common element
*/

const mostCommonElement = () => {};
const mostCommonElement = (array) => {
let obj = {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Think about splitting this part of your code into a helper function so that each function only does one thing.

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