Skip to content

LUIS MARTINEZ#58

Open
luiscmartinez wants to merge 12 commits into
bloominstituteoftechnology:masterfrom
luiscmartinez:master
Open

LUIS MARTINEZ#58
luiscmartinez wants to merge 12 commits into
bloominstituteoftechnology:masterfrom
luiscmartinez:master

Conversation

@luiscmartinez

Copy link
Copy Markdown

No description provided.

// The event director needs to have all the runner's first names converted to uppercase because the director BECAME DRUNK WITH POWER. Convert each first name into all caps and log the result
let allCaps = [];
console.log(allCaps);
let allCaps = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice use of map here, alternatively you don't have to create a new array variable, but it is a viable solution. Good job!


// Problem 2 The director is corrupt like most donation funded programs. create a function to find out how much of the donatons will the director keep. He wants his fair share to be 65%

let fairShare = runners.reduce((sum, money) => sum + money.donation * 0.65, 0)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice use of reduce here.

@bdurb

bdurb commented May 23, 2018

Copy link
Copy Markdown

@luiscmartinez thank you for the PR. Good work today.

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