Skip to content

London | 26-ITP-Sep| Mahdi Rafiei | Sprint 1 | Sprint1 exercises - #1465

Open
mrafeie wants to merge 13 commits into
CodeYourFuture:mainfrom
mrafeie:sprint1
Open

mrafeie wants to merge 13 commits into
CodeYourFuture:mainfrom
mrafeie:sprint1

Conversation

@mrafeie

@mrafeie mrafeie commented Sep 15, 2026

Copy link
Copy Markdown

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

Task code

CYF-1071

Changelist

Sprint1 exercises

Questions

@mrafeie mrafeie changed the title London | 25-ITP-Sep| Mahdi Rafiei | Sprint 1 | Sprint1 exercises London | 26-ITP-Sep| Mahdi Rafiei | Sprint 1 | Sprint1 exercises Sep 15, 2026
@mrafeie mrafeie added Complete Volunteer to add when work is complete and all review comments have been addressed. 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. and removed Complete Volunteer to add when work is complete and all review comments have been addressed. labels Sep 15, 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 on this PR, most of the tasks look fine, apart from one issue with the initial median task

Comment thread Sprint-1/fix/median.js

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 your tests before submitting the PR? I get some errors on the median specifically.

Comment thread Sprint-1/fix/median.js
const median = list.splice(middleIndex, 1)[0];
return median;
}
const calculateMedian = require("./median.js");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Where is median implemented?

Comment thread Sprint-1/implement/sum.js
if (numbers.length === 0) {
return 0;
}
return numbers.reduce((total, num) => total + num, 0);

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 the reduce function here

@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. labels Sep 22, 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. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants