Skip to content

Conversation

@zilinskyte
Copy link

@zilinskyte zilinskyte commented Dec 8, 2025

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

Bugs addressed

Questions

.

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Wrong number of parts separated by |s

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@zilinskyte zilinskyte changed the title fix: update function parameter to use destructuring for clarity West Midlands | ITP-Sept-25 | Georgina Rogers | Sprint 1 | Destructuring Dec 8, 2025
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

4 similar comments
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@zilinskyte zilinskyte added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Flows The name of the module. labels Dec 8, 2025
@sambabib sambabib added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Dec 10, 2025
Gryffindors.push(`${person["firstName"]} ${person.lastName}`);
}
}
return Gryffindors;

Choose a reason for hiding this comment

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

This solution returns the Gryffindors array, which is good. However, the exercise asks that you return the first and last names. This function will only return the names in an array, like so: [“Harry Potter”, “Ron Weasley”…], you would want to convert the contents of the array to individual strings. How do you reckon you can achieve this?


function getReceipt(order) {
let total = 0;
let receiptLines = ["QTY ITEM TOTAL"];

Choose a reason for hiding this comment

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

Please talk to me about the spacing here? Item and Total appear to be a single string “Item Total” with loads of spacing in the array definition.

Copy link
Author

Choose a reason for hiding this comment

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

I made the spacing in order for the headings to align with the table below when it prints in the terminal. Is there a better way to do this?

receiptLines.push(`TOTAL: ${(total / 100).toFixed(2)}`);
return receiptLines.join('\n');
}
console.log(getReceipt(order));

Choose a reason for hiding this comment

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

The exercise also requires that you log each item and the total cost of the order. I don’t believe you have done that in your solution here. Do you want to revisit the instructions from the exercise?

Copy link
Author

Choose a reason for hiding this comment

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

For me the table prints successfully in the terminal and looks exactly as in the instructions of the exercise

Copy link
Author

Choose a reason for hiding this comment

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

When logging the order, all items print with the quantity and price, do i need to log them in a different way, or one by one?

@sambabib sambabib added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants