Skip to content

London | 26-ITP-May | Gideon Defar | sprint 1 | Coursework - #1437

Open
gideondefar wants to merge 5 commits into
CodeYourFuture:mainfrom
gideondefar:feature/sprint-1-coursework
Open

London | 26-ITP-May | Gideon Defar | sprint 1 | Coursework#1437
gideondefar wants to merge 5 commits into
CodeYourFuture:mainfrom
gideondefar:feature/sprint-1-coursework

Conversation

@gideondefar

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

Completed all mandatory Sprint 1 exercises. The optional Stretch exercise was not completed due to time constraints.

@gideondefargideondefar added 📅 Sprint 1 Assigned during Sprint 1 of this module Core This is a core task and should be completed by all trainees 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 Aug 15, 2026
@gideondefargideondefar changed the title London | 26-ITP-May | Gideon Defar | sprint 1 | course workLondon | 26-ITP-May | Gideon Defar | sprint 1 | CourseworkAug 15, 2026
@hackertainmenthackertainment added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 20, 2026
@hackertainment

Copy link
Copy Markdown

I think your code is well organised and test cases are also clearly written. Keep it up. :-)

@hackertainmenthackertainment added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 20, 2026
@gideondefar

gideondefar commented Aug 20, 2026

Copy link
Copy Markdown
Author

I think your code is well organised and test cases are also clearly written. Keep it up. :-)

Thanks for the positive feedback but the label was changed to "reviewed" is it intensional or its made by accident?

@abdishakoor-dev

abdishakoor-dev commented Aug 21, 2026

Copy link
Copy Markdown

Two things to sort before this can be marked complete:

1. The refactor exercise hasn't been started

Sprint-1/refactor/includes.js line 1 says:

// Refactor the implementation of includes to use a for...of loop

The function still uses the original indexed for (let index = 0; index < list.length; index++) loop, so there's no refactoring done in this file yet. The only change in the diff is the trailing newline.

2. The fix exercise: work in median.js, not median.test.js

median.test.js line 5 says:

// Fix the implementation of calculateMedian so it passes all tests

The test file is what needs to pass for this exercise, so leave it exactly as it was and change only median.js until the tests it already contains pass. At the moment the original tests have been replaced with a new set of tests, so the ones you were asked to pass aren't being run, so restore the original median.test.js please.

Hint: your first line in median.js is list = list.filter((item) => typeof item === "number" && !isNaN(item)); which assumes list is an array. What if it's NOT an array? What if a string or object or nothing is passed in? filter can only work with array? What do you need to do in those cases?

Everything in the implement folder (sum, max, dedupe) looks good, nice clean handling of the edge cases there.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CoreThis is a core task and should be completed by all traineesModule-Data-GroupsThe name of the module.ReviewedVolunteer to add when completing a review with trainee action still to take.📅 Sprint 1Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@gideondefar@hackertainment@abdishakoor-dev