Skip to content

Conversation

@Baba05206
Copy link

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 required sprint 2 tasks covering debug, implement and interpret

Questions

@jaymes15 jaymes15 self-requested a review November 22, 2025 12:00
@jaymes15 jaymes15 added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Nov 22, 2025
@jaymes15 jaymes15 removed their request for review November 22, 2025 12:49
@WeiTsungCheng WeiTsungCheng 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 Nov 23, 2025
Copy link

@WeiTsungCheng WeiTsungCheng left a comment

Choose a reason for hiding this comment

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

Overall, it's quite good. There are a few areas that could be further considered.

Choose a reason for hiding this comment

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

Correct! One could consider whether a default value could be provided if a corresponding key does not exist.

Choose a reason for hiding this comment

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

nice !

Choose a reason for hiding this comment

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

This condition (invalid parameters (like array) → return false or throw an error) is not satisfied
e.g contains([1, 2, 3], "2")

Choose a reason for hiding this comment

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

ok. it works

prep/mean.js Outdated

Choose a reason for hiding this comment

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

  1. The array type in the problem is not restricted; it could be numbers or text. You should first check if it's text.

  2. The divisor should only count the number of columns occupied by significant numbers. However, let count = list.length will average the total values ​​in the array.

Choose a reason for hiding this comment

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

Your sum only adds valid numbers,
but count = list.length still includes invalid values.

@WeiTsungCheng WeiTsungCheng 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 24, 2025
@Baba05206 Baba05206 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 7, 2025
@Baba05206
Copy link
Author

@WeiTsungCheng , may I ask for your feedback on the updated response please? Thank you.

@Baba05206 Baba05206 closed this Dec 13, 2025
@Baba05206 Baba05206 reopened this Dec 13, 2025
@WeiTsungCheng
Copy link

Hi @Baba05206 sure, I will update it today

Copy link

@WeiTsungCheng WeiTsungCheng left a comment

Choose a reason for hiding this comment

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

ok nice job

@WeiTsungCheng WeiTsungCheng removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 14, 2025
@Baba05206
Copy link
Author

many thanks @WeiTsungCheng . is this completed now?

@Baba05206
Copy link
Author

does it need to be marked as completed?

Copy link

@WeiTsungCheng WeiTsungCheng left a comment

Choose a reason for hiding this comment

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

please check mean.js file's comment

@Baba05206
Copy link
Author

@WeiTsungCheng , please pardon me but I am unable to find mean.js or its comments in Sprint-2. What am i missing? Can we do a call in the morning so you could kindly show me what I am missing please?
image

@Baba05206
Copy link
Author

i looked in the upstream repo as well and could not find mean.js task.
image

@Baba05206 Baba05206 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Dec 16, 2025
@Baba05206
Copy link
Author

Baba05206 commented Dec 17, 2025

Hi William, I now know what happened and this was all my fault. There was a prep/mean.js exercise that should never have been submitted. I submitted this in error and deleted the folder when the error was pointed out to me by CJ. I should have closed the comment before deleting the prep folder and its contents. I do apologize for making you review a part of the task that was not in scope for the PR. I am sorry for causing the confusion. Prep and its content was not required to be submitted.

@WeiTsungCheng
Copy link

Don't worry too much. I just hoped I could be of some help with your studies.
Good luck!

@Baba05206
Copy link
Author

This PR is now completed.
image

@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. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Dec 19, 2025
@cjyuan
Copy link
Contributor

cjyuan commented Dec 19, 2025

@WeiTsungCheng

I mistakenly thought you didn't have the permission to add labels, so I added the "Complete" label just now.

As mentors, once we feel a PR review is complete, we go ahead and add the “Complete” label ourselves. If you’ve seen any instructions that say (or suggest) something different, please let me know and I would be happy to update the documentation so everything stays clear and consistent.

Thanks.

@WeiTsungCheng
Copy link

@WeiTsungCheng

I mistakenly thought you didn't have the permission to add labels, so I added the "Complete" label just now.

As mentors, once we feel a PR review is complete, we go ahead and add the “Complete” label ourselves. If you’ve seen any instructions that say (or suggest) something different, please let me know and I would be happy to update the documentation so everything stays clear and consistent.

Thanks.

Sorry, I may have misunderstood this earlier. As a code reviewer (not a mentor), I previously thought I only needed to change the status to reviewed. I’ll make sure to add the complete label going forward. Thanks for your reply.

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 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants