Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JavaScript Algorithms and Data Structures
- ES6
- Use Destructuring Assignment to Assign Variables from Nested Objects
- You can use the same principles from the previous two lessons to destructure values from nested objects.
- Using an object similar to previous examples:
- const user = {
- johnDoe: {
- age: 34,
- email: 'johnDoe@freeCodeCamp.com'
- }
- };
- for more:https://www.file-upload.com/gebbq9fwxs74
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement