-
-
Notifications
You must be signed in to change notification settings - Fork 158
West Midlands | 25-ITP-Sep | Baba Yusuf | Sprint 1 | Feature/destructuring #357
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
base: main
Are you sure you want to change the base?
Conversation
LonMcGregor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good overall, but I've left some small comments to make it even better
| }, | ||
| ]; | ||
| // Task 1: Gryffindor members | ||
| for (let person of hogwarts) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works well but you could maybe improve it by trying to use some higher order functions instead of an if inside a for loop. Can you see how you might use these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have now refactored using higher‑order functions (filter + forEach) to remove manual loops and if‑conditions. This makes the logic clearer, more declarative, and easier to extend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure you needed to commit this file? Is the change made directly relevant to the sprint task?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there was an error that i missed, but I believe this is a relevant task
Learners, PR Template
Self checklist
Changelist
Completed all the tasks as per the readme for exercises 1 - 3 of Sprint 1.
Tested all changes
Questions