Skip to content

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
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