Skip to content

Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 2 | debug - #1315

Open
Tobias-Amaechina wants to merge 49 commits into
CodeYourFuture:mainfrom
Tobias-Amaechina:group-data-sprint-2
Open

Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 2 | debug#1315
Tobias-Amaechina wants to merge 49 commits into
CodeYourFuture:mainfrom
Tobias-Amaechina:group-data-sprint-2

Conversation

@Tobias-Amaechina

Copy link
Copy Markdown

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

What I did encompassed the explanations below : Object & Array Manipulations: Implemented functions using for...in and for...of loops, bracket notation, and methods like Object.entries (e.g., inverting key-value pairs, calculating frequency tallies, and extracting country/currency data).

String Processing & Logic: Developed string parsing logic using regular expressions for cleaning punctuation, splitting text, and handling edge cases like empty strings.

Testing & Validation: Added comprehensive test suites using Jest to cover valid inputs, edge cases (empty arrays/strings), and invalid parameter types (numbers, arrays, strings).

Code Refactoring & Debugging: Refactored conditional checks, cleaned up console logs/assertions, and fixed variable assignments (let vs const) to improve code structure and maintainability.

… there is existence property name and when there is not
…le array of country code and return the corresponding currency code
… , removed the comme and changed the correct variables
@Tobias-Amaechina Tobias-Amaechina added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 27, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 27, 2026
@github-actions

This comment has been minimized.

@Tobias-Amaechina Tobias-Amaechina changed the title Birmingham | 25-ITP-May | Tobias Amaechina | Spring 2 | debug Birmingham | 26-ITP-May | Tobias Amaechina | Spring 2 | debug Jul 27, 2026
@github-actions

This comment has been minimized.

@Tobias-Amaechina Tobias-Amaechina added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 27, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 27, 2026
@Tobias-Amaechina Tobias-Amaechina changed the title Birmingham | 26-ITP-May | Tobias Amaechina | Spring 2 | debug Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 2 | debug Jul 27, 2026
@Tobias-Amaechina Tobias-Amaechina added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 27, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 1, 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.

Good start, I still see some formatting issues however. Also, when you run the tests, do you see any warnings of incomplete work?

function createLookup(pairs) {
const lookup = {};

for (let [country, currency] of pairs) {

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 use of destructuring

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks for the feedback

Comment thread Sprint-2/implement/tally.js Outdated
}else{
frequency[item] = 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.

Can you check your formatting in this file and others?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks for the feedback , The function has been refactored and formatted

@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 Aug 1, 2026
@Tobias-Amaechina Tobias-Amaechina added 🏕 Priority Mandatory This work is expected Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 3, 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.

Great, this looks much neater now. Good work

@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 Aug 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. 🏕 Priority Mandatory This work is expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants