Skip to content

London | ITP-JAN-2026 | Said Fayaz Sadat | Sprint 1 | coursework/sprint 1#980

Closed
fayaz551 wants to merge 9 commits into
CodeYourFuture:mainfrom
fayaz551:coursework/Sprint-1
Closed

London | ITP-JAN-2026 | Said Fayaz Sadat | Sprint 1 | coursework/sprint 1#980
fayaz551 wants to merge 9 commits into
CodeYourFuture:mainfrom
fayaz551:coursework/Sprint-1

Conversation

@fayaz551
Copy link
Copy Markdown

@fayaz551 fayaz551 commented Mar 5, 2026

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

completed the tasks of sprint-1 of data groups wrote the implementation and jest tests for the functions.

Questions

n/a

@fayaz551 fayaz551 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 6, 2026
@JaypeeLan JaypeeLan 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 Mar 11, 2026
Comment thread Sprint-1/fix/median.js Outdated

// Filter only real numbers
const numbers = list.filter(
(item) => typeof item === "number" && !isNaN(item)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Number.isFinite(item)

Read about isFinite method. It is a btter way to check.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

thanks for feedback, read about isFinite method and used it.

Comment thread Sprint-1/implement/max.js Outdated

// Filter only numeric values
const numbers = elements.filter(function (item) {
return typeof item === "number" && !isNaN(item);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

read about isFinite, and implement it here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

implemented it.

Comment thread Sprint-1/implement/max.js Outdated
}

// Otherwise, return the largest number
return Math.max.apply(null, 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.

This works, but ES6 is more readable.

Read about rest and spread, and update this line of your code.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

read about it and got to know how powerful it is, and updated my code with it.

@JaypeeLan JaypeeLan 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 Mar 11, 2026
@fayaz551 fayaz551 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 12, 2026
@JaypeeLan JaypeeLan 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 Mar 13, 2026
@illicitonion
Copy link
Copy Markdown
Member

Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants