Skip to content

London | 26-ITP-Sep | Mars Adesina | Sprint 1 | Data groups - #1494

Open
marscancode wants to merge 59 commits into
CodeYourFuture:mainfrom
marscancode:coursework/data-groups-sprint-1
Open

marscancode wants to merge 59 commits into
CodeYourFuture:mainfrom
marscancode:coursework/data-groups-sprint-1

Conversation

@marscancode

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

I have completed the Sprint 1 tasks, working through the JavaScript functions and making sure they work as expected. I have also run the tests to check that everything is working correctly.

@cjyuan cjyuan 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 Nov 5, 2026
@marscancode marscancode 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 Nov 6, 2026
@cjyuan

cjyuan commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Changes look good.

Comments professionally addressed.


You might have missed this comment: #1494 (comment)

What should calculateMean([Infinity, 0, -Infinity]) return?

Infinity is also a value of type "number".

Could you address it too?

@cjyuan cjyuan 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 Nov 6, 2026
@marscancode

Copy link
Copy Markdown
Author

Thanks for pointing this out! I've added tests for both calculateMean and sum to check how they handle Infinity values. Both functions allow Infinity and return NaN when positive and negative Infinity are added together.

Changes look good.

Comments professionally addressed.

You might have missed this comment: #1494 (comment)

What should calculateMean([Infinity, 0, -Infinity]) return?

Infinity is also a value of type "number".

Could you address it too?

@marscancode marscancode 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 Nov 6, 2026
@cjyuan

cjyuan commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

All good. Well done.

@cjyuan cjyuan 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 Nov 6, 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. 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