Skip to content

London | 26-ITP-May | Edina Kurdi | Sprint 1 | Object Destructuring - #550

Open
edinakurdi wants to merge 4 commits into
CodeYourFuture:mainfrom
edinakurdi:feature/destructuring
Open

London | 26-ITP-May | Edina Kurdi | Sprint 1 | Object Destructuring#550
edinakurdi wants to merge 4 commits into
CodeYourFuture:mainfrom
edinakurdi:feature/destructuring

Conversation

@edinakurdi

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

  • (ex-1) updated the parameter in introduceYourself
  • (ex-2) implemented a function using object deconstructing to find the poeple at Gryffindor house
  • (ex-3) implemented and called printReceipt()

@edinakurdi edinakurdi added 🏕 Priority Mandatory This work is expected 📅 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 Aug 13, 2026

@cjyuan cjyuan left a comment

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.

Looks good.

Comment on lines +11 to +14
const qty = "QTY";
const item = "ITEM";
const totals = "TOTAL";
console.log(`${qty.padEnd(10, " ")}${item.padEnd(20, " ")}${totals}`);

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.

Could also write

console.log(`${'QTY'.padEnd(10, " ")}${'ITEM'.padEnd(20, " ")}TOTAL`);`
// or
console.log('QTY'.padEnd(10, " ") + 'ITEM'.padEnd(20, " ") + 'TOTAL');

@cjyuan cjyuan 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. labels Aug 14, 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. Module-Data-Flows The name of the module. 🏕 Priority Mandatory This work is expected 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants