Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 1 | Feature-destructuring - #503
Open
Tobias-Amaechina wants to merge 5 commits into
Open
Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 1 | Feature-destructuring#503Tobias-Amaechina wants to merge 5 commits into
Tobias-Amaechina wants to merge 5 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Tobias-Amaechina
force-pushed
the
feature/destructuring
branch
from
July 30, 2026 10:34
3afa19a to
29bc8c0
Compare
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.
Self checklist
Changelist
print-1/destructuring/exercise-1/exercise.js
Adds object destructuring: let {name, age, favouriteFood} = personOne;
Leaves the exercise function signature placeholder in place
Sprint-1/destructuring/exercise-2/exercise.js
Adds two helper functions:
gryffindorOccupiers(hogwarts) — returns full names of people in Gryffindor using destructuring.
teachersWithPets(hogwarts) — returns teacher names who have pets (uses destructuring and a pet truthy check).
Sprint-1/destructuring/exercise-3/exercise.js
Adds a formatted receipt printout: destructures order items, computes line totals and a grand total, and logs a formatted table.
readme
Expands the module README with short bullets on where data can come from (hard‑coded, user input, files, APIs, DBs).