Skip to content

London | 26-ITP-May | Dagim Daniel | Sprint 1 | Exercises - #1337

Open
Dagim-Daniel wants to merge 1 commit into
CodeYourFuture:mainfrom
Dagim-Daniel:Sprint-1/Exercise
Open

London | 26-ITP-May | Dagim Daniel | Sprint 1 | Exercises#1337
Dagim-Daniel wants to merge 1 commit into
CodeYourFuture:mainfrom
Dagim-Daniel:Sprint-1/Exercise

Conversation

@Dagim-Daniel

Copy link
Copy Markdown

…an suggests

Learners, PR Template

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

All tasks under Sprint -1 is completed and i put all together as suggested

@Dagim-Daniel Dagim-Daniel added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Jul 30, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 1, 2026

@LonMcGregor LonMcGregor 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.

Good start. Most of these are working well, but it could be improved further

@@ -1 +1,6 @@
function dedupe() {}
function dedupe(value) {
const newDedupe = [...new Set(value)];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good use of sets, could the return code be simplified even further?

Comment thread Sprint-1/fix/median.js
const median = list.splice(middleIndex, 1)[0];
// Filter out non-numeric values
// const numbers = list.filter((x) => typeof x === "number");
const numbers = [];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Did you run the test case for this? I get an error when I try it

Comment thread Sprint-1/fix/median.js
const right = numbers[middleIndex];
return (left + right) / 2;
}
//console.log(`middleIndex: ${middleIndex}`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What benefit does this code give by being commented out?

@LonMcGregor LonMcGregor 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. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Data-Groups The name of the module. 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