Repository navigation
Connor robertson - #1
Merged
Merged
Conversation
omaddoc
reviewed
Jan 23, 2019
| let fullName = []; | ||
| console.log(fullName); | ||
| runners.forEach(function (runner) { | ||
| fullName.push(`${runner.first_name} ${runner.last_name}`); |
Collaborator
There was a problem hiding this comment.
Nicely done using ES6 template literal.
omaddoc
reviewed
Jan 23, 2019
| // The large shirts won't be available for the event due to an ordering issue. Get a list of runners with large sized shirts so they can choose a different size. Return an array named largeShirts that contains information about the runners that have a shirt size of L and log the result | ||
| let largeShirts = []; | ||
| console.log(largeShirts); | ||
| let largeShirts = runners.filter(function (runner) { |
Collaborator
There was a problem hiding this comment.
Nicely done. Although this is a preference because ES5 function is good either way, but try transitioning into ES6 arrow syntax and using it more often.
omaddoc
reviewed
Jan 24, 2019
| email: runner.email | ||
| }; | ||
| }) | ||
| //console.log(emailList) |
Collaborator
There was a problem hiding this comment.
Good job using the return like an object here.
omaddoc
reviewed
Jan 24, 2019
| counterOne(); | ||
| // Example usage: const newCounter = counter(); | ||
| // newCounter(); // 1 | ||
| // newCounter(); // 2 |
Collaborator
There was a problem hiding this comment.
Good work on understanding closures.
Collaborator
|
Didn't see any areas to improve in, so overall, great work on the project! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.