London | 26-ITP-January | Damian Dunkley | Sprint 3 | Coursework/sprint3/2-practice-tdd#1053
London | 26-ITP-January | Damian Dunkley | Sprint 3 | Coursework/sprint3/2-practice-tdd#1053DamianDL wants to merge 7 commits intoCodeYourFuture:mainfrom
Conversation
cjyuan
left a comment
There was a problem hiding this comment.
Your code is correct. I just have a few suggestions.
| let result = ""; | ||
| for (let i = 0; i < count; i++) { | ||
| result += str; | ||
| } |
There was a problem hiding this comment.
Note: String has a built-in method for repeating itself.
…nsitive and non-alphanumerics, as per feedback.
cjyuan
left a comment
There was a problem hiding this comment.
Changes look good, but I am not sure if you have pushed all changes to GitHub.
…ing the same expression multiple times
| `` | ||
| const lastTwoDigits = num % 100; | ||
| if (lastTwoDigits >= 11 && lastTwoDigits<= 13) | ||
| return num + "th"; | ||
|
|
There was a problem hiding this comment.
Something weird on line 3 and indentation is off.
Have you installed prettier VSCode extension and enable formatting on save/paste on VSCode
as recommended in
https://github.com/CodeYourFuture/Module-Structuring-and-Testing-Data/blob/main/readme.md
?
There was a problem hiding this comment.
Prettier installed and changes updated on save. changes to use last digit for 1/2 &3 updated.
|
Changes look good. Well done. |
Learners, PR Template
Self checklist
Changelist
Updates to;
count.test.js
repeat-str.test.js
get-ordinal-number.test.js
Questions