Skip to content

Glasgow | 25-ITP-May | Arthur Chan | Sprint 3 | practice-tdd#1406

Open
Motorcycle-lab wants to merge 1 commit into
CodeYourFuture:mainfrom
Motorcycle-lab:clean-practice-tdd
Open

Glasgow | 25-ITP-May | Arthur Chan | Sprint 3 | practice-tdd#1406
Motorcycle-lab wants to merge 1 commit into
CodeYourFuture:mainfrom
Motorcycle-lab:clean-practice-tdd

Conversation

@Motorcycle-lab

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

I finished the exercises inside sprint 3 . coursework 2 practice tdd

Questions

.

@Motorcycle-lab Motorcycle-lab added 📅 Sprint 3 Assigned during Sprint 3 of this module 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 🏕 Priority Mandatory This work is expected and removed 📅 Sprint 2 Assigned during Sprint 2 of this module labels Jun 26, 2026

@LonMcGregor LonMcGregor 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.

This implementation doesn't quite look finished yet, but good start.

Your functions are working, but need to be formatted.

You are missing test cases. Have you comitted them yet?

function countChar(stringOfCharacters, findCharacter) {
return 5
let count=0;
for(let letter of stringOfCharacters)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could you fix the formatting here? You IDE should be able to do that for you quite easily.

function getOrdinalNumber(num) {
return "1st";

if(num===11){

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What about larger numbers, like 111? What ordinal should you get?

@LonMcGregor LonMcGregor added the Reviewed Volunteer to add when completing a review with trainee action still to take. label Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 🏕 Priority Mandatory This work is expected 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