-
-
Notifications
You must be signed in to change notification settings - Fork 202
West Midlands | 25-ITP-Sep | Baba Yusuf | Sprint 2 | Module-data-groups/Sprint-2 #873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
West Midlands | 25-ITP-Sep | Baba Yusuf | Sprint 2 | Module-data-groups/Sprint-2 #873
Conversation
…ng and development
…unctions with corresponding tests
WeiTsungCheng
left a comment
There was a problem hiding this 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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice !
There was a problem hiding this comment.
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")
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
The array type in the problem is not restricted; it could be numbers or text. You should first check if it's text.
-
The divisor should only count the number of columns occupied by significant numbers. However,
let count = list.lengthwill average the total values in the array.
There was a problem hiding this comment.
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 , may I ask for your feedback on the updated response please? Thank you. |
|
Hi @Baba05206 sure, I will update it today |
WeiTsungCheng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok nice job
|
many thanks @WeiTsungCheng . is this completed now? |
|
does it need to be marked as completed? |
WeiTsungCheng
left a comment
There was a problem hiding this 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
|
@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? |
|
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. |
|
Don't worry too much. I just hoped I could be of some help with your studies. |
|
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. |



Learners, PR Template
Self checklist
Changelist
Completed required sprint 2 tasks covering debug, implement and interpret
Questions