Skip to content

Connor robertson - #1

Merged
omaddoc merged 7 commits into
masterfrom
Connor-Robertson
Jan 23, 2019
Merged

omaddoc merged 7 commits into
masterfrom
Connor-Robertson

Conversation

@ConConRob

Copy link
Copy Markdown
Owner

No description provided.

@ConConRob
ConConRob requested a review from omaddoc January 22, 2019 12:53
@omaddoc
omaddoc merged commit 7a4cec7 into master Jan 23, 2019
@omaddoc
omaddoc deleted the Connor-Robertson branch January 23, 2019 14:50
let fullName = [];
console.log(fullName);
runners.forEach(function (runner) {
fullName.push(`${runner.first_name} ${runner.last_name}`);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nicely done using ES6 template literal.

// 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) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.

email: runner.email
};
})
//console.log(emailList)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good job using the return like an object here.

Comment thread assignments/closure.js
counterOne();
// Example usage: const newCounter = counter();
// newCounter(); // 1
// newCounter(); // 2

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good work on understanding closures.

@omaddoc

omaddoc commented Jan 24, 2019

Copy link
Copy Markdown
Collaborator

Didn't see any areas to improve in, so overall, great work on the project!

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