es6

06. Obj Destructuring πŸ‘©β€πŸŽ“πŸ‘¨β€πŸŽ“

πŸ“– Implement and Recognize Object Destructuring

Implement the following user story:

  • As a developer, I want to be able to pull out data from objects and arrays into variables.

Acceptance Criteria

  • It’s done when I have destructured the objects to pull out the data that are logged in the console.

  • It’s done when I have destructured the array to pull out the data that are logged in the console.

  • It’s done when I have run node index.js after destructuring to confirm the values logged in the console.

πŸ“ Notes

Refer to the documentation:

MDN Web Docs on object destructuring


πŸ† BONUS

If you have completed this activity, work through the following challenge to further your knowledge:

  • How can we take a property from an object and assign it to a variable with a different name when we are destructuring it?

Use Google or another search engine to research this.


βœ… Solutions

Solutions Click Here