Skip to content

London | Jan26 | Ihor Taradaiko | Sprint 1 | Object Destructuring#451

Closed
ihortar wants to merge 2 commits intoCodeYourFuture:mainfrom
ihortar:feature/destructuring
Closed

London | Jan26 | Ihor Taradaiko | Sprint 1 | Object Destructuring#451
ihortar wants to merge 2 commits intoCodeYourFuture:mainfrom
ihortar:feature/destructuring

Conversation

@ihortar
Copy link
Copy Markdown

@ihortar ihortar commented Apr 16, 2026

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

  • Exercise 1
  • Exercise 2
  • Exercise 3

@ihortar ihortar added 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 Apr 20, 2026
@Luro91 Luro91 added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Apr 23, 2026
Copy link
Copy Markdown

@Luro91 Luro91 left a comment

Choose a reason for hiding this comment

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

Well done on task 1 and 2. Task 3 is only missing the proper indentation.

for (let { quantity, itemName, unitPricePence } of order) {
const lineTotal = (quantity * unitPricePence) / 100; // Convert pence to pounds
total += lineTotal;
console.log(`${quantity}\t${itemName}\t\t${lineTotal.toFixed(2)}`);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The indentation does not match the requirements. How can you fix this?

QTY     ITEM                    TOTAL
1       Hot cakes               2.32
2       Apple Pie               2.78
1       Egg McMuffin            2.80
1       Sausage McMuffin                3.00
2       Hot Coffee              2.00
4       Hash Brown              1.60

Total: 14.50
QTY     ITEM                TOTAL
1       Hot Cakes           2.32
2       Apple Pie           2.78
1       Egg McMuffin        2.80
1       Sausage McMuffin    3.00
2       Hot Coffee          2.00
4       Hash Brown          1.60

Total: 14.50

@Luro91 Luro91 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. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Apr 23, 2026
@illicitonion
Copy link
Copy Markdown
Member

Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants