Skip to content

Object Destructuring #24

Open
Open

Description

@SallyMcGrath

Learning 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

1

Submission & Review

  1. Fork to your Github account.
  2. Make a branch for this project called feature/destructuring
  3. Make regular small commits in this branch with clear messages.
  4. 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
Loading

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.

Activity

  1. added
    📅 Sprint 1
    and removed
    📅 Sprint 3
    on May 14, 2024
  2. moved this to 📋 Backlog in Coursework Planneron May 9, 2025
  3. added
    Module-Data-Flows
    on Aug 5, 2025
  4. locked and limited conversation to collaborators on Sep 10, 2025
  5. added
    Core
    on Dec 16, 2025
  6. changed the title [-][TECH ED] Array Destructuring[/-] [+]Array Destructuring[/+] on Jan 29, 2026
  7. changed the title [-]Array Destructuring[/-] [+]Object Destructuring[/+] on Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoreModule-Data-FlowsSubmit:PR🏕 Priority Mandatory🐇 Size Small📅 Sprint 1

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions