-
-
Notifications
You must be signed in to change notification settings - Fork 195
West Midland | ITP-May-2025 | Saleh Yousef | Module-Structuring-and-Testing-Data | sprint 2 #589
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?
Conversation
new file: prep/example.js
…ent toPounds function, and enhance formatAs12HourClock function with tests
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.
Good solutions to this sprint. I've left one comment for you to reply to, which is very minor. Everything else looks good.
Remember to take care to only commit files that are relevant to what you're working on - maybe you did not need to commit the "prep" directory.
Sprint-2/2-mandatory-debug/1.js
Outdated
// Finally, correct the code to fix the problem | ||
// =============> write your new code here | ||
function sum(a, b) { | ||
return result = | ||
a + b; |
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 works, can you see any way you could clean the code up so it is easier to read?
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.
I've taken return result = a + b;
off as it the same as return a + b
that’s better. Thank you
Could you please review the PR, this from last week and i’ve made the
change as mentioned. Thank you
…On Fri, 4 Jul 2025 at 11:39 AM LonMcGregor ***@***.***> wrote:
***@***.**** commented on this pull request.
Good solutions to this sprint. I've left one comment for you to reply to,
which is very minor. Everything else looks good.
Remember to take care to only commit files that are relevant to what
you're working on - maybe you did not need to commit the "prep" directory.
------------------------------
In Sprint-2/2-mandatory-debug/1.js
<#589 (comment)>
:
> // Finally, correct the code to fix the problem
// =============> write your new code here
+function sum(a, b) {
+ return result =
+ a + b;
This works, can you see any way you could clean the code up so it is
easier to read?
—
Reply to this email directly, view it on GitHub
<#589 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BR4U662RGI2JTKVVNJEOE3D3GZKUZAVCNFSM6AAAAAB73LLSL2VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDSOBWGU3DANZRGQ>
.
You are receiving this because you authored the thread.Message ID:
<CodeYourFuture/Module-Structuring-and-Testing-Data/pull/589/review/2986560714
@github.com>
|
Everything looks good now, good job @SalehOmar-Y |
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
This pull request includes all required changes for Sprint 2, such as implementing new features and functions, fixing bugs from the previous sprint, improving code structure and readability, updating and adding relevant test cases, and refactoring functions for better performance and maintainability
Questions
Ask any questions you have for your reviewer.