Skip to content

London| 26-ITP-Jan| Ebrahim Moqbel | Sprint 3 | Practice-TDD #1233

Open
Ebrahim-Moqbel wants to merge 1 commit intoCodeYourFuture:mainfrom
Ebrahim-Moqbel:coursework-sprint-3/practice-tdd
Open

London| 26-ITP-Jan| Ebrahim Moqbel | Sprint 3 | Practice-TDD #1233
Ebrahim-Moqbel wants to merge 1 commit intoCodeYourFuture:mainfrom
Ebrahim-Moqbel:coursework-sprint-3/practice-tdd

Conversation

@Ebrahim-Moqbel
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
  • [ x] I have tested my changes
  • [ xx] My changes follow the style guide

Changelist

I used the jest test and met the criteria for the following files:
-count.js
-get-ordinal-number.js
-repeat-str.test.js

@Ebrahim-Moqbel Ebrahim-Moqbel added 📅 Sprint 3 Assigned during Sprint 3 of this module 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. labels Mar 8, 2026
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

  • Function implementation is correct.
  • Tests are comprehensive
  • Test descriptions are clear

Well done.

Comment on lines +3 to +9
let count =0;
for (let i = 0; i < stringOfCharacters.length; i++) {
if (stringOfCharacters[i] === findCharacter) {
count+=1;
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

The spacing around the operators in this code is not consistent.

Have you installed the prettier VSCode extension and enabled "Format on save/paste" on VSCode,
as recommended in https://github.com/CodeYourFuture/Module-Structuring-and-Testing-Data/blob/main/readme.md
?

If you have enabled "Format on save" but it is not working, it is likely that you haven't assign a formatter for JS file. This could happen if you have zero or multiple extensions that can format .js file.

If you have installed "Prettier" extension. To assign it as the formatter of JS code, you can try:

  1. Use "Format document" to format the JS file. Sometimes, VSCode will ask you to choose a formatter, and you can manually select "Prettier".
  2. Edit settings.json and set Prettier as the default formatter for JS.
    See: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. 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. Complete Volunteer to add when work is complete and all review comments have been addressed. labels Mar 14, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Mar 14, 2026

Can you fix the Markdown syntax on the last two checked checkboxes in the PR description?

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