Skip to content

London | 26-ITP-May | Dipa Sarker | Sprint 2 | Sprint-2-exercises - #1272

Open
Dipa-Sarker wants to merge 12 commits into
CodeYourFuture:mainfrom
Dipa-Sarker:Sprint-2-exercises
Open

London | 26-ITP-May | Dipa Sarker | Sprint 2 | Sprint-2-exercises#1272
Dipa-Sarker wants to merge 12 commits into
CodeYourFuture:mainfrom
Dipa-Sarker:Sprint-2-exercises

Conversation

@Dipa-Sarker

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

Completed the Debug, Implement, and Interpret sections of the sprint.

  1. Debug
  • Investigated the bugs in the provided files.
  • Predicted the issues before running the code.
  • Used Node.js to test the predictions and fixed the bugs found.
  1. Implement
    Implemented the required functions and verified them with tests:
  • contains
  • lookup
  • tally
  • querystring

Checked the functions with different inputs to ensure they behave according to the requirements.

  1. Interpret
  • Reviewed the provided code and investigated unfamiliar JavaScript syntax, operators, and functions.
  • Used documentation and console logging to understand how the code works.

**Testing

  • Ran Jest tests to check the implementations.
  • Confirmed that the completed tasks pass the provided test cases.

@Dipa-Sarker Dipa-Sarker added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 21, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jul 27, 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 work on these tasks, there are a few you could improve

Comment thread Sprint-2/debug/author.js Outdated
Comment thread Sprint-2/debug/recipe.js Outdated
Comment thread Sprint-2/implement/querystring.js Outdated
const decodeKey = decodeURIComponent(key);
const decodeValue = decodeURIComponent(value);
const replacedKey = decodeKey.replace("+", " ");
const replacedValue = decodeValue.replace("+", " ");

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 happens if you have a value like a+b+c+d?

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.

Should I have to use replaceAll( ) instead of replace( ) for multiple "+" occurance?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

yes, replaceAll sounds like a good option here.Can you try implementing that?

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.

added case for multiple +.

@LonMcGregor LonMcGregor 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 Jul 27, 2026
@Dipa-Sarker Dipa-Sarker added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 29, 2026
@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. labels Jul 29, 2026
@Dipa-Sarker Dipa-Sarker 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 Jul 30, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants