Skip to content

London | 26-ITP-May | Mandip Sanger | Sprint 2 | Coursework - #1432

Open
mandipsanger wants to merge 10 commits into
CodeYourFuture:mainfrom
mandipsanger:sprint-2
Open

London | 26-ITP-May | Mandip Sanger | Sprint 2 | Coursework#1432
mandipsanger wants to merge 10 commits into
CodeYourFuture:mainfrom
mandipsanger:sprint-2

Conversation

@mandipsanger

@mandipsanger mandipsanger commented Aug 14, 2026

Copy link
Copy Markdown

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

Sprint 2 Coursework

@github-actions

This comment has been minimized.

@mandipsanger mandipsanger added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Aug 14, 2026
@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@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 Aug 14, 2026
@mandipsanger mandipsanger changed the title Sprint 2London | 25-ITP-May | Mandip Sanger | Sprint 2 | Coursework London | 25-ITP-May | Mandip Sanger | Sprint 2 | Coursework Aug 14, 2026
@github-actions

This comment has been minimized.

@mandipsanger mandipsanger changed the title London | 25-ITP-May | Mandip Sanger | Sprint 2 | Coursework London | 26-ITP-May | Mandip Sanger | Sprint 2 | Coursework Aug 14, 2026
@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@mandipsanger mandipsanger added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 14, 2026
Comment thread Sprint-2/debug/recipe.js
console.log(`${recipe.title} serves ${recipe.serves}
ingredients:
${recipe}`);
${recipe.ingredients}`);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The requirement is to output each ingredient on a new line.

Comment on lines +3 to 8
if (queryString === "") {
return queryString;
}
if (queryString.length === 0) {
return queryParams;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One of the if statements seems unnecessary.

Comment on lines +1 to +2
function tally(array) {
const charCount = {};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does the following function call returns the value you expect?

tally(["toString", "toString"]);

Suggestion:

  • Look up an approach to create an empty object with no inherited properties, or
  • use Object.hasOwn()

@cjyuan cjyuan 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 Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Data-Groups The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants