Skip to content

London | 26-May-ITP | Yonatan Teklemariam | Sprint 1 | exercises - #1235

Open
Yonatanteklemariam wants to merge 8 commits into
CodeYourFuture:mainfrom
Yonatanteklemariam:Sprint-1
Open

London | 26-May-ITP | Yonatan Teklemariam | Sprint 1 | exercises#1235
Yonatanteklemariam wants to merge 8 commits into
CodeYourFuture:mainfrom
Yonatanteklemariam:Sprint-1

Conversation

@Yonatanteklemariam

@Yonatanteklemariam Yonatanteklemariam commented Jul 7, 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

Changelist

fixed all the to-be implemented functions and fixed as well as re-run the tests to make sure everything goes smoothly

@github-actions

This comment has been minimized.

@Yonatanteklemariam Yonatanteklemariam changed the title London | 26-May-ITP London | 26-May-ITP | Yonatan Teklemariam | Sprint -1 | fix Jul 7, 2026
@github-actions

This comment has been minimized.

@Yonatanteklemariam Yonatanteklemariam changed the title London | 26-May-ITP | Yonatan Teklemariam | Sprint -1 | fix London | 26-May-ITP | Yonatan Teklemariam | Sprint 1 | fix Jul 7, 2026
@Yonatanteklemariam Yonatanteklemariam changed the title London | 26-May-ITP | Yonatan Teklemariam | Sprint 1 | fix London | 26-May-ITP | Yonatan Teklemariam | Sprint 1 | exercises Jul 8, 2026
@Yonatanteklemariam Yonatanteklemariam added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 8, 2026
@Yonatanteklemariam

Yonatanteklemariam commented Jul 11, 2026

Copy link
Copy Markdown
Author

@LonMcGregor, Good afternoon Lon, i hope you're doing well. Could you please review my PR? I submitted it 4 days ago. Thanks

@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 work, lots of good test cases. I have one comment about an if branch in your max file.

Comment thread Sprint-1/implement/max.js Outdated
let max = -Infinity;
for (const value of elements) {
if (typeof value === "number" && !Number.isNaN(value)) {
if (value > max) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Try to be careful about having lots of nested if conditions. Is there a way these could be combined?

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.

yes there's. I believe I can collapse into one condition, like on the code snippet added.

@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 Jul 13, 2026
collapsed into one condition
@Yonatanteklemariam Yonatanteklemariam 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 Jul 13, 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 work, task complete

@LonMcGregor LonMcGregor 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 Jul 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants