Description
Objectives
- Use object destructuring to extract values from an object and assign them to variables in one line
Link to the coursework
https://github.com/CodeYourFuture/Module-Data-Flows/tree/main/Sprint-1/destructuring
Why are we doing this?
Destructuring is very useful and used a lot in React. Both array and object destructuring are worth exploring.
Maximum time in hours (Tech has max 16 per week total)
1
How to submit
- Fork to your Github account.
- Make a branch for this project called feature/destructuring
- Make regular small commits in this branch with clear messages.
- When you are ready, open a PR to the CYF repo, following the instructions in the PR template.
gitGraph
commit id: "start"
branch feature/destructuring
commit id: "ex-1-update-argument"
commit id: "ex-2-teachers-pet"
commit id: "ex-3-print-receipt"
checkout main
merge feature/destructuring
There are several projects in this repo. Make a new branch for each project. This might feel challenging at first, so this is a good problem to bring to class to work on in groups with mentors.
Don't make one giant PR with all your work in for the module. Make a separate PR for each assignment.
How to review
- Complete your PR template
- Ask for review from a classmate or mentor
- Make changes based on their feedback
- Review and refactor again once the coursework solutions are released.
Anything else?
https://www.freecodecamp.org/news/array-destructuring-in-es6-30e398f21d10/
Metadata
Metadata
Assignees
Projects
Status
✅ Done