Skip to content

Glasgow | Jan-26-ITP | Fattouma Ouannassi | Sprint 3 | coursework/sprint-3-practice-tdd#1094

Open
FAprogrammerO wants to merge 3 commits intoCodeYourFuture:mainfrom
FAprogrammerO:coursework/sprint-3practice-tdd
Open

Glasgow | Jan-26-ITP | Fattouma Ouannassi | Sprint 3 | coursework/sprint-3-practice-tdd#1094
FAprogrammerO wants to merge 3 commits intoCodeYourFuture:mainfrom
FAprogrammerO:coursework/sprint-3practice-tdd

Conversation

@FAprogrammerO
Copy link

Learners, PR Template

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

This project (sprint 3) focuses on learning how to use JavaScript methods and npm test the code.

Questions

N/A

@FAprogrammerO FAprogrammerO added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 28, 2026
@FAprogrammerO FAprogrammerO force-pushed the coursework/sprint-3practice-tdd branch from b53bdab to eac7d73 Compare March 4, 2026 16:30
Copy link

@kyle-tightest kyle-tightest left a comment

Choose a reason for hiding this comment

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

get-ordinal-number and repeat-str.js look good! its just count.js that has some issues

Comment on lines +1 to +7
// function countChar(stringOfCharacters, findCharacter) {
// let count = 0;
// for (let i = 0; i < stringOfCharacters.length; i++) {
// if (stringOfCharacters[i] === findCharacter) {
// count++;
// }
// }

Choose a reason for hiding this comment

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

The ITP assignment does need countChar method to be implemented so that the tests, which call countChar will pass

Copy link
Author

Choose a reason for hiding this comment

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

Done ✅

Comment on lines +12 to +19
let numbers=[1,2,3,4,5,6,1,2,3,4,5,6]
let idxArray=[];
numbers.find((el,ix,numbers)=>{
if (el===3){

idxArray.push(ix);}
})
console.log(idxArray);

Choose a reason for hiding this comment

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

this piece of code does not seem to be related to the assignment.
please let me know if i can help you understand the problem better
or perhaps this was an accident?

Copy link
Author

Choose a reason for hiding this comment

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

You're absolutely right the extra code with the numbers array was unrelated to the assignment and was left in accidentally during my testing. I've now uncommented and finalized the correct countChar implementation, removed all unrelated code snippets and verified that the function passes the expected test cases.

Choose a reason for hiding this comment

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

ah okay, yes that makes sense. Just remember to always do a final check before pushing up

Copy link
Author

Choose a reason for hiding this comment

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

Thank you so much for your helpful feedback I really appreciate the time and effort you took to review my submission. 🙏
I've noted your reminder about doing a final check before pushing, and I'll make sure to keep that in mind for future submissions.
Just to confirm: is there anything else you'd like me to adjust or improve in the code? If everything looks good on your end, would you mind updating the status label to Complete when you get a chance?
Thanks again for your support!

Choose a reason for hiding this comment

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

hi @FAprogrammerO thanks, only a pleasure!
no sorry i meant to change it to complete.
done that now

@kyle-tightest kyle-tightest 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. labels Mar 12, 2026
@FAprogrammerO FAprogrammerO added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 13, 2026
@kyle-tightest kyle-tightest added Reviewed Volunteer to add when completing a review with trainee action still to take. 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 13, 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