Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

js2-week4 compleated #942

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HarrisSheraz20
Copy link

Your Details

Your Name: Harris Sheraz
Your City: London
Your Slack Name: Harris Sheraz

Homework Details

Module:JavaScript 2
Week: 4

Copy link
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

Very nice!

@@ -39,6 +39,11 @@ let writers = [
}
];


writers.map(w => {
return console.log(`Hi, my name is ${w.firstName} ${w.lastName}.I am ${w.age} years old, and work as a ${w.occupation}.`)
Copy link
Member

Choose a reason for hiding this comment

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

What does the return do here, and what's the difference between using map here (like you are), filter here, or forEach here?

@illicitonion illicitonion added the reviewed A mentor has reviewed this PR label Jun 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
reviewed A mentor has reviewed this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants