Skip to content

ITP_JAN_25 | HASAN DEMIROZ | Module-Data-Groups | SPRINT 2 #488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

hasandemiroz
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@day-lee day-lee self-requested a review April 7, 2025 16:09
@day-lee
Copy link

day-lee commented Apr 7, 2025

Hi @hasandemiroz, please add 'needs review' label to get a quicker review!

@day-lee day-lee added Needs Review Participant to add when requesting review Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Participant to add when requesting review labels Apr 7, 2025
Comment on lines +15 to +19
if (queryParams[key]) {
queryParams[key] = [].concat(queryParams[key], value);
} else {
queryParams[key] = value;
}
Copy link

Choose a reason for hiding this comment

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

What does this line do? Does concat() necessary when join() has already joined all values back into one string?


// c) What does Object.entries return? Why is it needed in this program?
// The current return value is wrong because the key and value are not swapped properly. The value is being overwritten by the key instead.
Copy link

Choose a reason for hiding this comment

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

This is duplicate answer. Please write an anwer to the question c.

@day-lee day-lee added Reviewed Volunteer to add when completing a review and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed Volunteer to add when completing a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants