Skip to content

Comments

Philip johnson#1

Open
phil7j wants to merge 4 commits intomasterfrom
philip-johnson
Open

Philip johnson#1
phil7j wants to merge 4 commits intomasterfrom
philip-johnson

Conversation

@phil7j
Copy link
Owner

@phil7j phil7j commented May 7, 2019

Completed MVP and part of stretch...

@phil7j phil7j requested a review from Josh-Diamond May 7, 2019 22:55
// The event director needs both the first and last names of each runner for their running bibs. Combine both the first and last names into a new array called fullName.
// The event director needs both the first and last names of each runner for their running bibs. Combine both the first and last names into a new array called fullName.
let fullName = [];
runners.forEach((runner)=> fullName.push(`${runner.first_name} ${runner.last_name}`));
Copy link
Collaborator

Choose a reason for hiding this comment

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

With Arrow Function Syntax, if you only have ONE parameter, you don't need to wrap them in parenthesis! they are optional! (two or more params would require parenthesis though!)

runners.forEach( runner => fullName.push(${runner.first_name} ${runner.last_name}));

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