Skip to content

Keiran Kozlowski#237

Open
gooseandmegander wants to merge 3 commits into
bloominstituteoftechnology:masterfrom
keirankozlowski:master
Open

Keiran Kozlowski#237
gooseandmegander wants to merge 3 commits into
bloominstituteoftechnology:masterfrom
keirankozlowski:master

Conversation

@gooseandmegander

Copy link
Copy Markdown

Creating PR to make code review comments.

@gooseandmegander gooseandmegander left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Nice job, Keiran. I've left some comments for you to review.

Comment thread assignments/callbacks.js
}

getLength(items, function (length) {
console.log(items.length);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

You're not actually using the parameter length in the function's block. It would be more appropriate to use console.log(length);

let allCaps = [];
let firstNames = [];

runners.forEach(function (runner) {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Do you think it is necessary to use both forEach and map? Why?

// ==== Challenge 4: Use .reduce() ====
// The donations need to be tallied up and reported for tax purposes. Add up all the donations into a ticketPriceTotal array and log the result
let ticketPriceTotal = [];
let prices = [];

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Why did you add the prices functionality in?

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