Skip to content

Cape Town | 26-ITP-May| Liyema Mfengwana| Sprint 1 | Destructuring - #578

Open
LiyemaMfengwana wants to merge 3 commits into
CodeYourFuture:mainfrom
LiyemaMfengwana:sprint-1
Open

Cape Town | 26-ITP-May| Liyema Mfengwana| Sprint 1 | Destructuring#578
LiyemaMfengwana wants to merge 3 commits into
CodeYourFuture:mainfrom
LiyemaMfengwana:sprint-1

Conversation

@LiyemaMfengwana

Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Complete Exercises

@LiyemaMfengwana LiyemaMfengwana added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 22, 2026

@Khantdotcom Khantdotcom left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

  • Look up declarative vs imperative methods in javascript.

Otherwise, all looking clean! Great job!!

Comment on lines +75 to +83
const gryffindorStudents = [];

for (const { firstName, lastName, house } of arr) {
if (house === "Gryffindor") {
gryffindorStudents.push(`${firstName} ${lastName}`);
}
}

return gryffindorStudents;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Look up declarative vs imperative methods in javascript. How would you rewrite this in declarative approach using javascript methods?

@Khantdotcom Khantdotcom added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 24, 2026
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 with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants