Skip to content

Glasgow| 2026-ITP-May | Tuan Nguyen| Sprint 1 | Array-and-Loop#1215

Open
Jacknguyen4438 wants to merge 17 commits into
CodeYourFuture:mainfrom
Jacknguyen4438:Array-and-Loop-sprint-1
Open

Glasgow| 2026-ITP-May | Tuan Nguyen| Sprint 1 | Array-and-Loop#1215
Jacknguyen4438 wants to merge 17 commits into
CodeYourFuture:mainfrom
Jacknguyen4438:Array-and-Loop-sprint-1

Conversation

@Jacknguyen4438
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

Changelist

Hello and thank you for checking this PR. I have done this course before hand and it ready to be review if additional change need to be fix or add please let know thank.

Questions

No Question.

@Jacknguyen4438 Jacknguyen4438 added 📅 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. Core This is a core task and should be completed by all trainees labels May 7, 2026
Copy link
Copy Markdown
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

I will mark this as complete, but please think about the two comments

Comment thread Sprint-1/fix/median.js
Comment on lines +13 to +15
// sorted copy for correct median calculation
const sorted = [...list]
.filter((items) => typeof items === "number" && !isNaN(items))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

filter itself actually returns a copy, so you could skip the [...list] part if you wanted

Comment thread Sprint-1/fix/median.js

if (sorted.length === 0) return null;

let correctMedian;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

median feels like a more natural name for this variable than correctMedian - what do you think?

@illicitonion illicitonion added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. Core This is a core task and should be completed by all trainees Module-Data-Groups The name of the module. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants