GLASGOW | 26-ITP-JAN | Alasdair MacDonald | Sprint 1 | Object Destructuring#390
Closed
MacDonald91 wants to merge 2 commits intoCodeYourFuture:mainfrom
Closed
GLASGOW | 26-ITP-JAN | Alasdair MacDonald | Sprint 1 | Object Destructuring#390MacDonald91 wants to merge 2 commits intoCodeYourFuture:mainfrom
MacDonald91 wants to merge 2 commits intoCodeYourFuture:mainfrom
Conversation
1 task
Luro91
reviewed
Apr 6, 2026
There was a problem hiding this comment.
I don't see the expected log in the console
There was a problem hiding this comment.
I don't see the implementation for task 2 of exercise 2
| grandTotal += totalPence; | ||
|
|
||
| console.log( | ||
| `${quantity} ${itemName} ${totalPounds}` |
There was a problem hiding this comment.
The formatting of the total column looks a bit different than expected
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
Luro91
reviewed
Apr 22, 2026
| // ✅ destructuring inside loop | ||
| for (const { firstName, lastName, house, pet, occupation } of hogwarts) { | ||
| console.log(`${firstName} ${lastName} is a ${occupation} from ${house}`); | ||
| } No newline at end of file |
There was a problem hiding this comment.
Why did you remove the condition again? Task 1 should only log people from Gryffindor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Learners, PR Template
Self checklist
Changelist
completed exercises 1-3
Questions
I have no questions at this time.