Skip to content

London | 26-ITP-May | Damilola Odumosu| Sprint 3 | Practice TDD#1538

Open
d-odumosu wants to merge 4 commits into
CodeYourFuture:mainfrom
d-odumosu:coursework/sprint-3-practice-tdd
Open

London | 26-ITP-May | Damilola Odumosu| Sprint 3 | Practice TDD#1538
d-odumosu wants to merge 4 commits into
CodeYourFuture:mainfrom
d-odumosu:coursework/sprint-3-practice-tdd

Conversation

@d-odumosu

Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Completed all requirements of practice TDD

@d-odumosu d-odumosu added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Structuring-And-Testing-Data The name of the module. 📅 Sprint 3 Assigned during Sprint 3 of this module labels Jul 20, 2026
@hey-hammad hey-hammad added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 25, 2026

@hey-hammad hey-hammad left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good implementation, couple of minor changes required.

throw new Error("string an char are not given")
}

const str = stringOfCharacters.split("")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

String are iterable in JS, so no need for the split function here.

@@ -1,5 +1,31 @@
function getOrdinalNumber(num) {
return "1st";
const numberStr1 = String(num).slice(-1)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variable names could be more descriptive

@hey-hammad hey-hammad added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Structuring-And-Testing-Data The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants