Glasgow| 2026-ITP-Jan | Tuan Nguyen| Sprint 1 | Array-and-Loop.#1189
Glasgow| 2026-ITP-Jan | Tuan Nguyen| Sprint 1 | Array-and-Loop.#1189Jacknguyen4438 wants to merge 16 commits intoCodeYourFuture:mainfrom
Conversation
cjyuan
left a comment
There was a problem hiding this comment.
Can you remove "Alarm Clock" from the PR title?
| // When passed to the sum function | ||
| // Then it should still return the correct total sum | ||
|
|
||
| test.todo("given an array with negative number, returns correct total sum"); |
There was a problem hiding this comment.
You should also remove all test.todo() in this file after you have implemented the corresponding tests.
There was a problem hiding this comment.
Thank you for the advice I have remove all the test.todo you can comfirm this when I asak for re-review PR.
|
@cjyuan Hello and Thank you for reading this PR I have finish fixing the course and it ready to be review again |
| { input: [6, 1, 5, 3, 2, 4], expected: 3.5 }, | ||
| { input: [110, 20, 0], expected: 20 }, | ||
| { input: [6, -2, 2, 12, 14], expected: 6 }, | ||
| { input: [6, -2, 2, 12, 14], expected: 2 }, |
There was a problem hiding this comment.
The median among [6, -2, 2, 12, 14] is 6, not 2. You were not supposed to change the tests in this exercise.
There was a problem hiding this comment.
Thank you for the feed back I will change back the test to it original state
|
@cjyuan Hello and thank you for you time to review my code, I have fix the code and it ready to be review again |
|
Dear @cjyuan I , thank for your time to review my code. I have try to make sure the test is revert back to it original state and make some change for the function to take the jest test. If there is some thing wrong with the median.test.js please let me know |
|
Changes look good. |
Learners, PR Template
Self checklist
Changelist
Hello I make this PR ready for review. I have learn and practice on how to combine loop and array.
Questions
No question.