Skip to content

Mehdi: Completed Assignment - #317

Open
mabbashm110 wants to merge 8 commits into
bloominstituteoftechnology:masterfrom
mabbashm110:master
Open

mabbashm110 wants to merge 8 commits into
bloominstituteoftechnology:masterfrom
mabbashm110:master

Conversation

@mabbashm110

Copy link
Copy Markdown

@analogy47 completed JS II

@47analogy

Copy link
Copy Markdown

Excellent job of creating a list (array) of just the names in Challenge #3 in the arrays assignment. In Challenge #4 of the same assignment, you can use reduce to sum up the array, something like:
ticketPriceTotal = runners.reduce((total, amount) => total + amount.donation, 0);

In callbacks assignment, for the function named last, it would be possible to pass the last item in the array to the callback:
cb(arr[arr.length - 1]); // arr.length - 1 would give the last element

Also, nice work on the closures assignment

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