Skip to content

Cape Town | 26-ITP-Sept | Leigh Ross | Sprint 1 | Object destructuring - #594

Open
leigh-ross wants to merge 7 commits into
CodeYourFuture:mainfrom
leigh-ross:coursework/sprint-1
Open

leigh-ross wants to merge 7 commits into
CodeYourFuture:mainfrom
leigh-ross:coursework/sprint-1

Conversation

@leigh-ross

@leigh-ross leigh-ross commented Nov 18, 2026 •

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

Task code

CYF-1112

Changelist

  • Implemented basic object destructuring in function parameters (exercise 1).
  • Used object destructuring to access values from objects within an array (exercise 2).
  • Extended the array-of-objects exercise with additional filtering and processing logic.
  • Built printReceipt(orderList) to print an itemised takeout receipt with formatted columns and order total (exercise 3).
  • Aligned QTY, ITEM, and TOTAL columns using padEnd() and formatted prices to 2 decimals with toFixed(2).
  • Converted pence to pounds and accumulated the order total.
  • Removed the expected-result comment block from the working file.

@leigh-ross
leigh-ross marked this pull request as draft November 18, 2026 21:39
@github-actions

This comment has been minimized.

@leigh-ross leigh-ross changed the title Cape Town Cape Town | 26-ITP-Sept | Leigh Ross | Sprint 1 | Object destructuring Nov 18, 2026
@github-actions

This comment has been minimized.

@leigh-ross
leigh-ross marked this pull request as ready for review November 18, 2026 21:45
@leigh-ross leigh-ross added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 18, 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.

1 participant