Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprint 1 CYF-ITP-South Africa | Emmanuel Siziba | Module-Data-Flows | Week 1 Destructuring #118

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

EmmanuelSiziba
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@EmmanuelSiziba EmmanuelSiziba added the Needs Review Participant to add when requesting review label Jan 3, 2025
@tyzia tyzia added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Participant to add when requesting review labels Jan 4, 2025
console.log(
`Hello, my name is ${name}. I am ${age} years old and my favourite food is ${favouriteFood}.`
`Hello, my name is ${personOne.name}. I am ${personOne.age} years old and my favourite food is ${personOne.favouriteFoodfavouriteFood}.`
Copy link

Choose a reason for hiding this comment

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

Please, use destructuring approach here. You pass personOne object as parameter to your function. It is expected that you will perform object destructuring.

}

for (const teacher of hogwarts) {
if (teacher.occupation === "Teacher") {
Copy link

Choose a reason for hiding this comment

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

Please, use object destructuring here. You will need to destructure teacher object.

@tyzia tyzia added Reviewed Volunteer to add when completing a review and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed Volunteer to add when completing a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants