Skip to content

Glasgow | 26-ITP-Jan| Martin McLean |Sprint 3| practice TDD coursework#1025

Open
mjm-git185 wants to merge 10 commits intoCodeYourFuture:mainfrom
mjm-git185:Courseswork_Sprint_3
Open

Glasgow | 26-ITP-Jan| Martin McLean |Sprint 3| practice TDD coursework#1025
mjm-git185 wants to merge 10 commits intoCodeYourFuture:mainfrom
mjm-git185:Courseswork_Sprint_3

Conversation

@mjm-git185
Copy link

Changelist

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
my coursework

@github-actions

This comment has been minimized.

@mjm-git185 mjm-git185 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 23, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Mar 3, 2026
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Good start on this task, there are a few things that you need to take a closer look at.

@@ -1,5 +1,14 @@
function countChar(stringOfCharacters, findCharacter) {
return 5
totalCount=stringOfCharacters.split("");

Choose a reason for hiding this comment

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

What kind of variables are these intended to be? js lets you declare variables like this, but it is good practice to be a bit more specific.

return "hellohellohello";
}
function repeatStr(times, str) {
if (times < 0){ throw ("error")}

Choose a reason for hiding this comment

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

If you ran this program and it just said "error" would that be enough info for you to figure out and solve the problem? Could this message be more specific?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Mar 3, 2026
@mjm-git185 mjm-git185 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 3, 2026
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Almost done here. Just be careful about countChar - did you fully test everything after making changes? When you declare Count initially it is still capitalised, and you didn't declare it as either a const or a let

@LonMcGregor LonMcGregor removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 2026
@mjm-git185
Copy link
Author

i have now changed them all to lower case and declared the count veritable as a let

@mjm-git185 mjm-git185 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 2026
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Good work on this task

@LonMcGregor LonMcGregor added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants