London | 26-ITP-Sep | Yonatan Teklemariam Weldeslassie | Sprint 3 | Coursework - #1487
Yonatanteklemariam wants to merge 8 commits into
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
LonMcGregor
left a comment
There was a problem hiding this comment.
Good work on this. It's nearly complete. Good work also attempting the stretch task, I've left a comment there if you want to improve it further
|
|
||
| if (hours > 12) { | ||
| return `${hours - 12}:00 pm`; | ||
| return `${hours - 12}:${minutes.toString().padStart(2, "0")} pm`; |
There was a problem hiding this comment.
Notice how the formatting in the template string for the minutes part is the same each time? Could this be simplified so the formatting is only done in one place?
There was a problem hiding this comment.
Hi Lon, Thanks for your feedback, I actually corrected the formatting accordingly. I would appreciate if you could look at it and put your review, thanks.
… in template literals
LonMcGregor
left a comment
There was a problem hiding this comment.
Great, hopefully it is clear here that it makes for code that is easier to read and maintain. Task complete!

Learners, PR Template
Self checklist
Task code
CYF-1053
Changelist
Completed the coursework set out in Sprint 3.
Questions